English, asked by sahilbhatt8197, 1 month ago

Write a program that inputs a number from the user and find its FACTORIAL using loop

Answers

Answered by thilakshika2011
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