#include <iostream>
using namespace std;
int main() {
int somma = 0;
int numero;
do
{
cout << "Inserisci un numero: " << endl;
cin >> numero;
somma = somma + numero;
cout << "Somma totale: " << somma << endl;
}
while (somma <= 10);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgc29tbWEgPSAwOwogICAgaW50IG51bWVybzsKCmRvCnsKICAgIGNvdXQgPDwgIkluc2VyaXNjaSB1biBudW1lcm86ICIgPDwgZW5kbDsgCiAgICBjaW4gPj4gbnVtZXJvOwoKICAgIHNvbW1hID0gc29tbWEgKyBudW1lcm87CiAgICBjb3V0IDw8ICJTb21tYSB0b3RhbGU6ICIgPDwgc29tbWEgPDwgZW5kbDsKfSAKd2hpbGUgKHNvbW1hIDw9IDEwKTsKCiAgICByZXR1cm4gMDsKfQ==