Program for a factorial of a given number using for loop
Answers
Answered by
3
Answer:
vuvuvivihkgigftsrstdyfugigihobicifufufufugucucivivivivivivivibivovovigivuvigufufufucuxufbkkkhdayxcufugig kvucucivivivivicivig dfgvjvigigihihiviviv
Answered by
1
Answer:
#include<stdio.h>
int main()
{
int n,i;
fact = 1 ;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
fact = fact * i;
}
printf("%d",fact);
}
Explanation:
Mark as brainliest : )
Similar questions
Math,
3 months ago
English,
3 months ago
English,
8 months ago
Math,
8 months ago
Political Science,
1 year ago