Factorial in C Programming Language

Factorial in C Programming Language Example: एक प्रोग्राम बनाओ जिसमें n संख्‍याओं का  Factorial Output में Print हो। Program #include<stdio.h> main() { int i, n, fact = 1; clrscr(); printf("enter the n:"); scanf("%d", &n); for(i=n; i>0; i--) fact=fact*i; printf("fact = %d", fact); getch(); } Output Fact =120 … [Read more...]