English, asked by ranjithabm133, 3 months ago

write a factorial pgm


Answers

Answered by Anonymous
10

Explanation:

#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