You are here

Page not found

Search results

  1. Exception handling in Java

    Java exception handling: we learn how to handle exceptions in Java with the help of suitable examples. Exceptions are errors that occur when a program executes. At compile time, syntax and semantics checking is done, and ...

    devyog - 04/12/2019 - 21:33

  2. Factorial program in C

    Factorial program in C using a for loop, using recursion and by creating a function ... , f = 1 ;     printf ( "Enter a number to calculate its factorial \n " ) ;   scanf ( "%d" ... || []).push({}); Output of C factorial program: Download Factorial program. As n! grows at a faster ...

    devyog - 11/10/2020 - 00:24

  3. C program to print Armstrong numbers

    C program to print Armstrong numbers, in the program, a user inputs two integers, and we print all Armstrong numbers between ... we call function check_armstrong, which returns '1' if a number is Armstrong and '0' otherwise. If you are not familiar with Armstrong ...

    devyog - 14/12/2019 - 21:39

  4. 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 ...

    devyog - 04/12/2019 - 20:24

  5. getpixel function in c

    ... y). Declaration: int getpixel(int x, int y); C program for getpixel #include<graphics.h> #include<conio.h> ... BLACK, the color of the pixel at (0,0) is BLACK. Thus, the program's output will be 0, as it indicates BLACK color. C ...

    devyog - 28/02/2025 - 22:18

  6. C substring, substring in C

    C substring program to find substring of a string and its all substrings . A substring ... || []).push({}); C substring program #include <stdio.h>   int main ( ) { ... C program*/ Substring program output: Number of substrings of a string A string of length n has [n*(n+1)/2 +1] ...

    devyog - 02/10/2020 - 16:44

  7. C program to find roots of a quadratic equation

    C program to find roots of a quadratic equation: Coefficients of the equation are ... = -b/a and the product of its roots = c/a. Let's look at the program now. (adsbygoogle = ...   return 0 ; } Output of program:  ...

    devyog - 16/02/2025 - 16:44

  8. Java program to find the largest of three numbers

    Java program to find the largest of three numbers, if the numbers are unequal, then ... '>' is used to compare two numbers. To find the largest number out of given numbers you can also use an array. ...

    devyog - 05/12/2019 - 00:04

  9. Java program to open Notepad

    Java program to open Notepad, it's a text editor installed in the Windows operating ... used for creating and editing text files. You may be writing Java programs in it, but you can also open it from your Java program. How ...

    devyog - 05/12/2019 - 20:46

  10. Java program to generate random numbers

    Java program to generate random numbers. We print 10 random numbers in the range [0, ... random float's use nextFloat, which returns a floating-point number between 0.0 to 1.0. ...

    devyog - 05/12/2019 - 18:46

Pages