Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Il fattoriale di un numero*/
- #include <iostream.h>
- using namespace std
- int main()
- {
- cout << "Inserire il numero:";
- cin >> n;
- for (int b=1;b<n;b++)
- {
- risultato=n*b;
- }
- cout << "Il risultato e':" <<risultato <<".";
- system ("pause");
- }
Add Comment
Please, Sign In to add comment