You are here

Page not found

Search results

  1. 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 ... i , n , c ;     printf ( "Enter the number of rows you wish to see in pascal triangle \n " ) ;   ...

    devyog - 09/10/2020 - 23:22

  2. Factorial program in Java

    Java program to find factorial of a number, if the number is negative, then an error message is printed. You can ...

    devyog - 05/12/2019 - 00:13

  3. C program to count number of vowels in a string

    C program to count number of vowels in a string: for example, in the string "love," there are two vowels, 'o' and 'e,'. In the program, both lower-case and upper-case are considered, i.e., 'a,' A,' 'e,' ...

    devyog - 26/05/2024 - 13:55

  4. Java methods

    Java methods tutorial: Java program consists of one or more classes, and a class may contain method(s). A ... ( ) ;     System . out . println ( "Number of characters = " + n ) ;         // Replace ...

    devyog - 04/12/2019 - 19:51

  5. Java constructor

    A Java constructor is a method that is used to initialize an object. It has the ... an object   } } The output of the program: The program is the simplest example of a constructor. The ... can create as many constructors in a class as required. The number depends on the information we have about the attributes of an object ...

    devyog - 04/12/2019 - 20:53

  6. C++ program to reverse a string

    C++ program to reverse a string that a user will input, for example, if the user enters "hello," then "olleh" will be printed as output. C++ program #include <iostream> #include <cstring> using ...

    devyog - 23/11/2019 - 12:08

  7. C program to find minimum value in an array

    C program to find the minimum or the smallest element in an array. It also prints ... it occurs in the list of integers. How to find smallest number in an array? Our algorithm assumes the first element as the minimum ... = window.adsbygoogle || []).push({}); C program to find smallest number in an array #include <stdio.h> ...

    devyog - 11/10/2020 - 11:36

  8. Palindrome in Java

    Java program to check if a string is a palindrome or not, it's a palindrome if it ... on reversal. For example, "dad" is a palindrome, as its reverse is "dad," whereas "program" isn't, as its reverse is "margorp" that is ...

    devyog - 12/10/2020 - 22:21

  9. Addition of two numbers in C

    ... = window.adsbygoogle || []).push({}); C program to add two numbers #include <stdio.h> int main ( ...   return 0 ; } Output of the program: Download Add numbers program. Similarly, we can ...

    devyog - 06/04/2025 - 08:03

  10. C program to add two numbers using pointers

    C program for the addition of two numbers using pointers. In the program, we have two integer variables x and y and two pointer variables p and ... of operator and '*' is value at the address operator. C program #include <stdio.h> int main ( ) {   ...

    devyog - 06/04/2025 - 13:33

Pages