while(x<=5)
{
cin >> number;
total=total+number;
x++;
}
cout << "total is " << total << endl;
while(x<=5)
{
cin >> number;
total=total+number;
x++;
}
cout << "total is " << total << endl;
本文标题:19 - Simple Program Using a Loop
本文链接:https://www.haomeiwen.com/subject/kzjzgxtx.html
网友评论