You are on page 1of 1

#include<conio.

h>
#include<stdio.h>
#include<iostream.h>
void main(){
float f=1,a,r;
clrscr();
cout<<"dime el numero";
cin>>a;
for (int x=a;x>1;x--){
f=f*x;
}
cout<<"\n el factorial del numero "<<a<<" es: "<<f;
getch();
}

You might also like