Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main ()
- {
- int n, num, max, conta, totale, nome;
- totale = 0;
- conta = 1;
- max = 0;
- n = 0;
- uhmmm:
- cout << "inserisci un numero ";
- cin >> num;
- totale = totale + num;
- n=n+1;
- if (conta == 0)
- max = num;
- else if (num > max)
- max = num;
- cout << "premi 1 per inserire più valori, qualunque altro valore per andare avanti ";
- cin >> nome;
- if (nome == 1)
- goto uhmmm;
- cout << "massimo=";
- cout << max;
- cout << "; totale=";
- cout << totale;
- return 0;
- //mi dispiace per lei se ha dovuto leggere questo abominio
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement