weixin_39401782
编程小辣鸡
2017-11-03 05:58

见了鬼了为什么这么简单的东西没有输出????

5
  • namespace
  • ios

#include

using namespace std;

int main()
{
int year = 0;
double a = 0.0;
double b = 0.0;

while (b <= a);
{
    ++year;
    a += 10;
    b = (100 + b)*0.05 + b;
} 

cout << year << endl;
cout << a << endl;
cout << b << endl;

system("pause");
return 0;

}

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

11条回答