Write a program that inputs a number from the user and find its FACTORIAL using loop
Answers
Answered by
1
Explanation:
Factorial Program using loop
#include<stdio.h>
int main()
{
int i,fact=1,number;
printf("Enter a number: ");
scanf("%d",&number);
for(i=1;i<=number;i++){
fact=fact*i;
Similar questions