C Program – Reverse the Elements of an Array
Here we are going to reverse the elements of an array using C program. Reverse the Elements of an Array : ArrayRverse.c #include<stdio.h> int main(void) { int i,j,temp;…
Press Esc to close
Archive
Here we are going to reverse the elements of an array using C program. Reverse the Elements of an Array : ArrayRverse.c #include<stdio.h> int main(void) { int i,j,temp;…
Here we are going to solve multiplication of two matrices using C Program. Multiplication of two Matrices : ArrayMultiplication.c #include #define ROW1 3 #define COL1 4 #define ROW2…
C Program to Addition of two Matrices. Addition of two Matrices : MatrixAddition.c #define ROWS 3 #define COLS 4 #include<stdio.h> int main(void) { int i,j; int matx1[ROWS][COLS],matx2[ROWS][COLS],matx3[ROWS][COLS]; printf("Enter…
How to add elements in an array using C Program. Add elements of an Array : ElementsToArray.c #include<stdio.h> int main(void) { int arr[10],i,total=0; for(i=0; i<10; i++) { printf("Enter…
C Program to find the largest and smallest number in an array. Largest and Smallest number in an Array : SmallLargeElements.c #include<stdio.h> int main(void) { int i,int_arr[10]={6,4,5,0,2,-1,10,-5,15,9}; int…
C Program to print the sum of digits till single digit. Sum of Digits Till Single Digit : SumOfDigits.c #include<stdio.h> int main(void) { long num; int dig,sum; printf("Enter…
C Program to find the GCD of two numbers. GCD of two numbers : GCD.c #include<stdio.h> int gcdCalc(int a,int b); int main(void) { int x, y; printf("Enter x…
C Program to print the prime numbers between two numbers. Prime numbers between two numbers : PrimeNumbers.c #include<stdio.h> #include<math.h> void printPrimes(int num1,int num2); int isPrimeNumber(int n); int main(void)…
C Program to print Armstrong numbers between the given two numbers. Armstrong numbers : ArmstrongNumbers.c #include<stdio.h> int main(void) { int x,y,n,num,cube,d,sum; printf("Enter x and y values to print…
C program to reverse of a number. Reverse of a number : Reverse.c #include<stdio.h> int reverse(int n); int main(void) { int num; printf("Enter any number to reverse :…
C Program to check a given number is palindrome or not. Number is Palindrome or not ? Palindrome.c #include<stdio.h> long int reverse(long int n); int isPalindrome(long int num);…
C Program to find given number is Even or Odd. Even or Odd : EvenOrOdd.c #include<stdio.h> int main(void) { int n; printf("Enter any number : "); scanf("%d",&n); if(n%2==0)…
C Program to find the factorial of given number. Factorial Of Given Number : Factorial.c #include<stdio.h> int main(void) { int n,num; long fact=1; printf("Enter any number : ");…
C Program to find a given number is prime or not. is Prime or not ? PrimeOtNot.c #include<stdio.h> #include<math.h> int main(void) { int i,n; printf("Enter any number :…
C- Program to generate Fibonacci Series. Fibonacci Series : Fibonacci.c #include<stdio.h> int main(void) { long a,b,c; int i,n; a=0; b=1; printf("Enter the number of terms : "); scanf("%d",&n);…