#include "stdio.h"int main(void){int a=100,b=100;for(int n=1;a>=b;n++)//我把它放在這里就通不過,提示未定義。但是我把它拿出來,放在上面一行,就可以,這是為什么。還有我用的是codeblocks還有我這個//的用法對不對?{b=(100*1.05)*n;a=100+100*0.1*n;}printf("The cost is a is %d and b is %d and n is %d",a,b,n);return 0;}
- 2 回答
- 0 關注
- 190 瀏覽
添加回答
舉報
0/150
提交
取消