Guest User

Untitled

a guest
Jan 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. /*Il fattoriale di un numero*/
  2.  
  3. #include <iostream.h>
  4. using namespace std
  5.  
  6. cout <<"Inserire il numero : ";
  7. cin >> n;
  8. for (int b=1;b<n;b++)
  9. {
  10. risultato=n*b;
  11. }
  12. cout <<"Il risultato e' :"<<risultato<<".";
  13. system ("pause")
Add Comment
Please, Sign In to add comment