저는 프로그래밍에 익숙하지 않고 현재 프로그램에서 작업하고 있습니다 (거의 완료되지 않은 상태입니다). 그러나 어떻게 작동하지 않으며 왜 작동하지 않는지 알 수 없습니다. 나는C 프로그램에서 루프가있는 문제
#include <stdio.h>
int main(void)
{
printf("Welcome to the ROBOT GAME!\n"
"Please enter the column of your starting point. Keep numbers in the range of one to three.\n");
int a, b;
if(1<=a<=3);
{
scanf("%i", &a);
}
else
{
printf("Sorry try again.");
}
printf("Please enter the row of your starting point. Keep numbers in the range of one to three.\n");
if(1>=b<=3);
scanf("%i", &b);
printf("What is your next move? Pick\n"
"1.Right\n"
"2.Left\n"
"3.Up\n"
"4.Down\n");
}
기본 C 자습서를 읽으십시오. –
'C 프로그램의 루프 문제'where is loops ?? ['C'에 대한 기본적인 지식이 필요합니다.] –
'if (<= 2 = 3)'뒤에';'를 제거하십시오. – Rustam