You are here

Page not found

Search results

  1. Anagram program in C

    Anagram program in C to check whether two strings are anagrams or not. They are assumed ... other. So, in anagram strings, all characters occur the same number of times. For example, "ABC" and "CAB" are anagrams, as every character, ... || []).push({}); C anagram program #include <stdio.h> int check_anagram ( char ...

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

  2. Sum of n numbers in C

    Sum of n numbers in C: This program adds n numbers that a user inputs. The user enters a number indicating how many numbers to add and the n numbers. We can do it by ... = window.adsbygoogle || []).push({}); C program to find sum of n numbers using a for loop #include <stdio.h> ...

    Yogesh Suneja - 10/12/2019 - 23:42

  3. C++ program for prime numbers

    C++ program to print first n prime numbers. C++ program #include <iostream> #include <cmath> using ... 3 , count, c ;     cout << "Enter the number of prime numbers to print \n " ;     cin >> n ; ...

    Yogesh Suneja - 22/11/2019 - 22:07

  4. C++ program to add two matrices

    C++ program to add two matrices. C++ matrix addition program #include <iostream> using namespace std ;   ... ] [ 10 ] ;     cout << "Enter number of rows and columns of matrix \n " ;   cin >> m >> ...

    Yogesh Suneja - 31/10/2019 - 20:06

  5. C program to merge two arrays

    C program to merge two arrays into another array. They are assumed to be sorted in ascending order . A user inputs them; the program combines them to get a larger array. If they aren't in ascending order, ... sorted [ 200 ] ;   printf ( "Input number of elements in first array \n " ) ;   scanf ( "%d" ...

    Yogesh Suneja - 19/11/2019 - 20:02

  6. C program to insert an element in an array

    C program to insert an element in an array, for example, consider an array a[10] ... and a[0] = 1, a[1] = 2 and a[2] = 3 and you want to insert a number 45 at location 1 i.e. a[0] = 45, so we have to move elements one step ... = window.adsbygoogle || []).push({}); C program #include <stdio.h>   int main ( ) { ...

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

  7. C++ constructor example

    C++ constructor example program: Constructor are functions having name as that of the class. They do ... and are used to initialize objects. C++ constructor program example #include <iostream> using namespace std ... ) {   Game football ;   cout << "Number of goals when game is started = " << football. getGoals ( ) ...

    Yogesh Suneja - 06/02/2018 - 13:57

  8. C++ programs

    ... programs. C++ language programs C++ Hello World program C++ program to add two numbers C++ program to reverse a number C++ program to add two complex numbers C++ ...

    Yogesh Suneja - 31/10/2019 - 22:25

  9. Pattern programs in C

    ... ******* ********* We have shown five rows above; in the program, a user inputs the numbers of rows to print. Pattern program in C ... row , c , n ;   printf ( "Enter the number of rows in pyramid of stars to print \n " ) ;   scanf ...

    Yogesh Suneja - 02/10/2020 - 00:19

  10. C program to generate random numbers

    C program to generate pseudo-random numbers using rand and random function (Turbo ... word pseudo is used. Function rand() returns a pseudo-random number between 0 and RAND_MAX. RAND_MAX is a constant which is platform ... code using rand We use modulus operator in our program. If you evaluate a % b where a and b are integers then result will ...

    Yogesh Suneja - 29/09/2018 - 15:28

Pages