factorial en DFD y c++
hallar el factorial de un numero por seudocodigo y dfd#include
<iostream>
using
namespace std;
int
main ()
{
int
num;
long
fact;
fact=1;
cout<<
"ingrese cualquier numero"<<endl;
cin>>num;
while
(num>0)
{
fact=fact*num;
num=num-1;
}
cout<<
"el factorial de este numero es"<<fact<<endl;
system (
"pause");
return
0;
}
Publicidad