請問哪里出錯了?
#include <stdio.h>
int main()
{
? ? int sum = 0;
? ? int i;
? ? for(i=1; i<=10; i++)
? ? {
? ? ? ? printf("%d\n", i);
? ? ? ? if(i==3);
? ? ? ? {
? ? ? ? ? ? goto END;? ? ? ? ? ? ? ? ? ? //在這里使用goto語句
? ? ? ? }
? ? }
? ? END:printf("結束for循環了....");? //請選擇合適位置添加標識符
? ? return 0;? ??
}
2020-05-26
2020-03-21
if后面不加“;”
2019-11-15
if 的后面不用加“;”
2019-10-31
if 的后面不用加“;”
2019-10-23
if 的后面不用加“;”