👤

#include
using namespace std;
int main(){
int n,i=1,s;
do{
cout <<"introduceti o valoare: ";
cin >> n;
}while (n<=0);
do{
s=s+i;
i++;
}while (i<=n);
cout <<"suma este:" < return 0;
}
Exista vreo greseala?