Horje
factorial c program using for loop Code Example
factorial c program using for loop
#include<stdio.h>
int main(){
  int i,f=1,num;
 
  printf("Enter a number: ");
  scanf("%d",&num);
 
  for(i=1;i<=num;i++)
      f=f*i;
 
  printf("Factorial of %d is: %d",num,f);
  return 0;
}




16

Related
sleep in c programming Code Example sleep in c programming Code Example
reverse a number in c Code Example reverse a number in c Code Example
show image in matplotlib Code Example show image in matplotlib Code Example
remove element from np array Code Example remove element from np array Code Example
what is strikethrough in markdown Code Example what is strikethrough in markdown Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10