Guest User

Untitled

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