New Technology is Common, New thinking is rare
Download Now
#include<stdio.h> int fact(int); int main() { int n; printf("Enter value to find factorial : "); scanf("%d",&n); n=fact(n); printf("\nFactorial is : %d ",n); return 0; } int fact(int x) { if(x==1) return(x); else x=x*fact(x-1); }
Bhuvan Arora
Post a Comment
No comments:
Post a Comment