In this page we have shared various types of c programs on various topics like loops,switch case,if-else statement,arrays,strings,pointer,functions,recursion etc. This page consists of programs from basic c programs to high level c programs.
#include<stdio.h>
int main()
{
int i,f=1;
printf("Enter a number\n");
scanf("%d",&n);
for(i=0;i<n;i++)
f=f*i;
}
printf("The factorial of a number is=%d",n);
return 0;
#include<stdio.h> int main() { int i,f=1; printf("Enter a number\n"); scanf("%d",&n); for(i=0;i<n;i++) { f...