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
Chemistry,
3 months ago
Social Sciences,
3 months ago
Math,
3 months ago
English,
6 months ago
Math,
6 months ago
Political Science,
11 months ago
Political Science,
11 months ago