问题遇到的现象和发生背景 请问为什么这个只会输出100,不会输出101等数字
用代码块功能插入代码,请勿粘贴截图
#include<iostream>
using namespace std;
int main()
{
int a = 1, b = 0, c = 0; int d = ((100 * a) + 10 * b + c);
do
{
cout << d << endl;
c++;
} while (d<1000);
system("pause");
return 0;
}