谁帮我用C编一个简单的程序
来源:百度知道 编辑:UC知道 时间:2024/06/19 00:13:56
1 write a program that uses a while loop to print the number from 5 to 15
楼上的这么完善下才好,不然有错的
#include<stdio.h>
void main()
{
int i=5;
while(i<16)
{
printf("%d ",i);
i++;
}
}
这个好办!
main()
{
int i=5;
while(i=16)
{
printf("%d",i);
i++;
}
}