answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

void main()

{

int i,fact=1,n;

clrscr();

printf("\nEnter the no of terms =");

scanf("%d",&n);

for(i=1;i<=n;i++)

fact*=i;

printf("\nFactorial value for %d terms = %d",n,fact);

getch();

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering
Related Questions