You are here

Page not found

Search results

  1. C program to reverse a number

    C program to reverse a number and to print it on the screen. For example, if the input is 123, the output will be 321. In the program, we use the modulus operator (%) to obtain digits of the number. To ... || []).push({}); C program to find reverse of a number #include <stdio.h> int main ( ) ...

    Yogesh Suneja - 17/11/2019 - 21:05

  2. Enhanced for loop in Java

    Enhanced for loop in Java is better when scanning a complete array instead of using a for loop. Its ... array_name is the name of an array. Enhanced for loop Java program class EnhancedForLoop {   public static ...

    Yogesh Suneja - 05/12/2019 - 00:09

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

    Yogesh Suneja - 04/12/2019 - 21:33

  4. Reverse a string in Java

    Java program to reverse a string that a user inputs. The charAt method is used to ... = window.adsbygoogle || []).push({}); Java program to reverse a string import java.util.* ; ...

    Yogesh Suneja - 05/12/2019 - 00:42

  5. Pascal triangle in C

    C program to print the Pascal triangle that you might have studied while studying ... || []).push({}); Pascal triangle program in C language #include <stdio.h>   long factorial ( int ) ;   int main ( ) {   ...

    Yogesh Suneja - 09/10/2020 - 23:22

  6. Armstrong number in C

    Armstrong number C program to check whether a number is an Armstrong number or not, it's a number ... numbers . We will consider base ten numbers in our program. The algorithm to do this is: First, we calculate the number of digits in our program and then compute the sum of individual digits raise to the power number ...

    Yogesh Suneja - 12/12/2019 - 21:06

  7. Sum of n natural numbers in C

    C program to find the sum of n natural numbers using the formula and a for loop . ... Sum of first n natural numbers = n*(n+1)/2. C program to find sum of n natural numbers #include <stdio.h> ...

    Yogesh Suneja - 04/11/2020 - 14:18

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

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

  9. sqrt in C

    ... a number. To use it, include the "math.h" header file in the program. Declaration: double sqrt(double); Square root in C using sqrt ... decimal digits. Output of program: C program to find square root of numbers from 1 to 100 #include <stdio.h> ...

    Yogesh Suneja - 04/11/2020 - 13:23

  10. Palindrome in C

    C program to check if a string or a number is palindrome or not . A palindrome ... then the string is a palindrome otherwise not. C program to check palindrome without using string functions . Some palindrome ... || []).push({}); Palindrome program in C language #include <stdio.h> #include <string.h> ...

    Yogesh Suneja - 14/10/2020 - 19:48

Pages