#include<iostream.h>void main(){int x;long s=1;cout<<"Enter Number\n";cin>>x;for(int i=1;i<=x;i++)s*=i;cout<<"The Factorial for "<<x<<" = "<<s<<endl;}
Post a Comment
No comments:
Post a Comment