我通过这个项目,平地机给我50%说我没有使用循环功能。该说明说while循环使用,还是他的意思呢?这里是代码。该项目应该计数从10到0,然后从0到10.这对循环意味着什么?
#include <stdio.h>
int main()
{
int Integer;
printf("Please enter an integer\n");
scanf_s("%d", &Integer);
int count = Integer;
while (count >= 1)
{
printf("%d\n", count);
count--;
}
printf("*****\n");
while (count <= Integer)
{
printf("%d \n", count);
count++;
}
return 0;
}
我们不知道你在做什么,对不起。 –
我们是谁?似乎直截了当的问题。 –
然后等待答案,然后“我通过这个项目和平地机给我50%”对不起,我迷路了 –