使用while语句编程输出1-N之间所有能被3整除的数
c吧
全部回复
仅看楼主
level 1
求求了,真的做不出来了,一个班都不会
2022年11月22日 09点11分 1
level 2
#include <stdio.h>
void main()
{
int n, i;
scanf("%d",&n);
i=0;
while(i<=n)
{
i=i+1;
if(i%3 ==0) printf("%d",i);
}
}
没有编译器,总感觉哪里不对
2022年11月22日 11点11分 2
<n
2022年11月22日 12点11分
@microroom 现在有什么好的编译器么
2022年11月22日 13点11分
level 1
谢谢
2022年11月23日 05点11分 4
1