factorial en DFD y c++

Publicado en por Angie te quiere...

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
Para estar informado de los últimos artículos, suscríbase:
Comentar este post
J
esa mierda esta mal
Responder
M
<br /> uuuhhhh gracz<br /> <br /> <br />
Responder