Posts

Showing posts from March, 2020

Write a program to identify whether the given number is a perfect number or not using a function. 28 is a perfect number.

Write a C program to store N numbers in a one dimensional array and calculate its average with the help of the function.

Write a C program to determine determinant of a square matrix with the help of function int determinant(int a[][], n) where a is the matrix whose determinant is to be found and n is dimension of square matrix.

Write a program to calculate the factorial of a given number.

Write a program to identify whether the given number is a perfect number or not. 28 is a perfect number.

Write a program to read number and identifies whether the given number is a prime number or not.

Write a program to generate Fibonacci number using do while loop.

Write a program to read a sentence and counts the total number of character (excluding space) using while loop.

Write a C program for matrix addition with the help of function add(int a[ ][20], int b[ ][20], int n, int m) where a and b are matrix to be added and n and m are dimension of a and b.

Write a program to evaluate transpose of n by n matrix with the help of function void transpose(int matrix[ ][20], int n) where matrix is the matrix to be transformed and n is the dimension of matrix.

Write a recursive program to find the factorial of a given number.

Write a program to evaluate GCD of two given integers. Use function that returns GCD.