You are here

Page not found

Search results

  1. Java programs

    Java programming: Java program consists of instructions that will be executed on a machine to perform ... ] arguments ) { & # 13 ;     int c ; //declaring a variable&#13;   & # 13 ;   /* Using a ... & # 13 ;   & # 13 ;     for ( c = 1 ; c & # 13 ; Output :& # 13 ; < img ...

    Yogesh Suneja - 02/11/2023 - 02:56

  2. assert in C

    ... that is used to check specific conditions at runtime (when a program is under execution) and is very useful while debugging a program. ... assert(int expression); The expression can be any valid C language expression many a time it is a condition. In the program, we ...

    Yogesh Suneja - 02/10/2020 - 16:14

  3. Java program to generate random numbers

    Java program to generate random numbers. We print 10 random numbers in the range [0, ... ( String [ ] args ) {     int c ;     Random t = new Random ( ) ;     // random integers in [0, 100]     for ( c = 1 ; c <= 10 ; c ++ ) {       System ...

    Yogesh Suneja - 05/12/2019 - 18:46

  4. switch case in C

    switch is a keyword of C language. Example C program explaining use of switch #include<stdio.h> main ( ...

    Yogesh Suneja - 05/01/2018 - 00:48

  5. Using multiple classes in a Java program

    A Java program may contain any number of classes. The following program comprises of two classes: Computer and Laptop, both the classes have ... || []).push({}); Using two classes in Java program class Computer {   Computer ( ) {     ...

    Yogesh Suneja - 04/12/2019 - 20:24

  6. Java program to convert Fahrenheit to Celsius

    Java program to convert Fahrenheit to Celsius: This code does temperature conversion ... || []).push({}); Java temperature conversion program import java.util.* ; class ...   } } Download Fahrenheit to Celsius program class file. (adsbygoogle = ...

    Yogesh Suneja - 04/12/2019 - 19:46

  7. Draw shapes using C graphics

    This C graphics program draws basic shapes such as circle, line, rectangle, ellipse and display text on screen using C graphics. This can be a first graphics program for a beginner. C program ...

    Yogesh Suneja - 23/11/2019 - 11:40

  8. Java program to open Notepad

    Java program to open Notepad, it's a text editor installed in the Windows operating ... Java programs in it, but you can also open it from your Java program. How to open Notepad using Java program? import java.util.* ; import java.io.* ; ...

    Yogesh Suneja - 05/12/2019 - 20:46

  9. Java program to get IP address

    Java program to print the IP (Internet Protocol) address of a computer system, we ... object, which represents the localhost. Java IP address program import java.net.InetAddress ; class IPAddress ... ) ;   } } Download IP address program class file. Output of program: The output shows the ...

    Yogesh Suneja - 05/12/2019 - 19:57

  10. Java program to add two numbers

    Java program to add two numbers, a user enters two integers, and we calculate their ... add two floating-point numbers. Download Add numbers program class file. You can also create a method that returns the sum of two ... || []).push({}); Output of program: Java program to add two numbers using BigInteger class ...

    Yogesh Suneja - 04/12/2019 - 19:35

Pages