1 喜歡 0 不喜歡
3.8k 瀏覽
顯示更多...
[練習] Coding (C) - 最新提問 分類:Chapter 3: Branching, Looping and Functions | 用戶: (5.9k 分)
ID: 28130 - 從幾時開始: 無限制 - 到幾時結束: 無限制

修改於 用戶: | 3.8k 瀏覽

23 個回答

0 喜歡 0 不喜歡
內容已隱藏
#include * * ** ****

int main(void)
{
** ** *** * ** **
int country_code;
** * ** ** your country ** * *
scanf ** **** ** * * *** * * *** *
* * * **
 {
* * * * ** * * ** ***
 }
 else * * * ** *
** * * * **
**** ** *** ** *** *** ***
* ** ** * * * *
** * * **** * * ***
* ** * ***
*** * * *** * * ** ** ***
* *** ** **
* * * ****** ***** ** ** ** **
** ** *** *
* * *** ***** * **** * *
* * * **
* **** *
else
    * * *** * *** ***

********* * * * *** * * 0;
}
100/100 最新回答 用戶: (244 分)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 喜歡 0 不喜歡
內容已隱藏
** *** * **** * ****

int ** ** argc, char * ** {

int * ***
*** ** * your country ** * *
scanf * ** ** ** * * * ** *

* * ** * starts from here
* ** * ***
* ** ** ** * * **** * *** *** * * *
}
else * ** * ** ** *
**** * ** * * * * *
}
else ** ** *
*** *** ** *** *** * * * * *
}
else ****** *
*** * ** * * * ** **** * * ** * ** *
}
else
* * **** ** *** ** ***** *

******* ** * * *** ** 0;
}
100/100 最新回答 用戶: (227 分)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 喜歡 0 不喜歡
內容已隱藏
**** * * *** * ****

int * argc, char * {

int * * **
* * * ** ** your country ** * * *** *
scanf *** *** **** * *** * * **

*** * * * starts from here
*** ** * * *
**** * * * ** ** ***** * * ** * *
}
else **** * *
**** ** * *** **** **** **
}
else * * * * *
**** * *** ** ** * ** ** ** * **
}
else ** **** *
* ** ** * ** * * *** *** * * ***
}
else
* ** * * **** * * ** ** * ** *

** ** **** ** *** **** * 0;
}
最新回答 用戶: (227 分)
0 0
Case 0: Wrong output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 喜歡 0 不喜歡
內容已隱藏
int main(int argc, char *argv[]) {

int **** *
* *** * * * your country ** ***
scanf * ** * * * * ** ** ** ***** *
*** * *** * *
 {
**** ** * ** * * ** *
* **
* * * ** * ** *
* ** ** **
** * ** ** *** * * ***** ** *** **** ** *
* * * ******
* * *** ** **** * * *
** ** *** *
* * **** ***** *** *** * *
* ** ***
* ***** * * * * * ** *
** * ** *
*** ** * *** * * *** **** *
* **** *
* * ** * condition starts from here

else
    * * ** ****** *

* ** * ***** ** ** ** 0;
}
50/100 最新回答 用戶: (244 分)
0 0
prog.c: In function 'main':
prog.c:4:1: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 printf("Input your country code:\n");
 ^~~~~~
prog.c:4:1: warning: incompatible implicit declaration of built-in function 'printf'
prog.c:4:1: note: include '<stdio.h>' or provide a declaration of 'printf'
prog.c:5:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 scanf ("%d", &country_code);
 ^~~~~
prog.c:5:1: warning: incompatible implicit declaration of built-in function 'scanf'
prog.c:5:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
0 0
#include <stdio.h> is missing
0 喜歡 0 不喜歡
內容已隱藏
* * *** ****

int * **** argc, char ***** {

int *** **
* * * * * * your * * *** **
scanf ** * ** * * ** * *** **

if * ** == 886)

* * * * * *** ** * * **** * * * * * * *

else if * * * ** == 976)

* ** ** ** *** * ** ** ****** * *** **
else if ** * * * == 62)
***** *** * * * *** ** * ** ** * * **** * * *

else if *** ** * == 66)

* * *** ** ******* ** ** *** **** * * ***

else
** * * * ****** ***** * * **

**** ** * * ******** 0;
}
****** End
** ** * a **** *
100/100 最新回答 用戶: (183 分)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 喜歡 0 不喜歡
內容已隱藏
* * *** ** * **

int * * argc, char *** * {

int * * *****
** * ****** * your * * * ** *** * *
** **** * * ** ** * ** ******* * **

if * * * == 886)

* **** * * *** *** * ** ** ** * ** * *

else if * * == 976)

* *** *** *** * ** ** ** * * *

else if ******** == 66)

*** **** * * * ** *** * ** ** * **

else
** * *** * **** ** * * *

* ****** * ** * ** * ** * 0;
}
* *** End
** a *
最新回答 用戶: (183 分)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Wrong output
Case 3: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>
#include * **** *** * *

/* run this program using the console pauser or add your own getch, *** * ** *** or input loop */

int main(int argc, char *argv[]) {
* * *** * ** * * * * * n;
* * * *** ***** * **** * ** **** the what is your country?: ");
** ** **** * * *
* **** *** * * ** * * ***** * * * * * &n);
* * ** ** ** * * *
* * ** ** * *** n ==886)
* *** * *** ** * * * **** ** ** **** * ** ** *******
* *** ** * * * *** * ** if( n == 976 )
**** ** ** * * ** * *** * * * * *** ** ** **** * * *** * ***
* ** * ** * ** ** * if( n == 66 )
* *** * * ** ***** * ****** **** **** * *** **** ***** *** * *
* ** * *** * * * ** * * * if( n == 62 )
** * * *** ** * ** ** * ** ** ** **** *** * * ** ** *** * *****
**** ** ** ** * ***** ** * *
* ** * ** ** ** ** * * * *** *** * * * * * ***** ***
* * ** * * ***** * *******
** ** * * ***** ****
*** **** * *** * *** 0;
}
100/100 最新回答
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
0 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
* * * *** ** * **** * a;
* * * * * ** * ***
*** ** * * *** ** ** ** **** * a country code:");
**** * *** ** * * **
*** * *** * * *** ** * **** * **** ** ***** &a);
    
* ***** * ** * * *** ** == 886)
**** * *** * * * **** * * * ** * ** *** * * **** * *** ** * **
* * *** * *** **** ** * * if(a == 976)
**** * ** ****** ** * *** ** *** * ** **** ** * * ** * *** * ***
* * * * * ** * ** * if(a == 62)
*** * * ** ** * ** * * * *** *** ** ** ** * **** ** * ****
* *** *** ** **** ** ** * ** if(a == 66)
* *** * * ******** * ***** * *** ***** * * * *** * *** *
** ** * * ** ** *** * * *
* **** * ** * ** * ** * ** * ** * ** ** * *
**** *** ***** *
* * ****** ** * ***** 0;
}
100/100 最新回答 用戶: (243 分)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
0 喜歡 0 不喜歡
內容已隱藏
** * * **

int *** * *** char {

int ** *** *
** * * **** your * * ******
** * ** ** **** * ** * * * **

* *** **** * from here
** * * ** == 886)
*** * ** *****
** *** **** * == 976)
** * * ***** *
else * ** *** == 62)
* *** ** * ** * *
else * * ** == 66)
*** *** *** * ** **
else
* * **** * ****** * * **

* * * * ** ****** * * * 0;
}
100/100 最新回答 用戶: (220 分)
修改於 用戶:
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Wrong output
Case 3: Correct output
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Wrong output
Case 3: Correct output
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Wrong output
Case 3: Correct output
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 喜歡 0 不喜歡
內容已隱藏
* * * *** * ** *** **** **

int * ** argc, char * {

int * ** * *
** *** * * * your * * * *** * * *
* * ** * ** * * * *** ****

* * * * from here
* *** * == 976)
* * ** ****** ** ****
else **** == 886)
* *** * ** *
else ** * * * == 62)
* ** ** ***** ** **
* *** *** == 66)
**** * * ** ** *** ** * * *
*** ** * * * == 355)
*** * * * * ** *
else
** **** **** **** * *** * **

** ** *** ** * **** * * * 0;
}
最新回答
修改於 用戶:
0 0
Case 0: Wrong output
Case 1: Correct output
Case 2: Wrong output
Case 3: Wrong output
0 0
You almost got it. Please add more if conditions for other countries as well :)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Wrong output
Case 3: Correct output
0 0
prog.c: In function 'main':
prog.c:23:2: error: expected declaration or statement at end of input
  printf("No");
  ^~~~~~
0 0
prog.c: In function 'main':
prog.c:23:2: error: expected declaration or statement at end of input
  printf("No");
  ^~~~~~
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Wrong output
Case 3: Correct output
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Wrong output
Case 3: Correct output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.131.212
©2016-2025

相關問題

0 喜歡 0 不喜歡
24 回答
[練習] Coding (C) - 最新提問 11月 2, 2017 分類:Chapter 3: Branching, Looping and Functions | 用戶: nat236919 (5.9k 分)
ID: 30241 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 3.2k 瀏覽
0 喜歡 0 不喜歡
17 回答
[練習] Coding (C) - 最新提問 10月 27, 2017 分類:Chapter 3: Branching, Looping and Functions | 用戶: nat236919 (5.9k 分)
ID: 29618 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 2.8k 瀏覽
0 喜歡 0 不喜歡
14 回答
[練習] 開放式問答 - 最新提問 11月 2, 2017 分類:Chapter 3: Branching, Looping and Functions | 用戶: nat236919 (5.9k 分)
ID: 30244 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 1.4k 瀏覽
0 喜歡 0 不喜歡
20 回答
[練習] Coding (C) - 最新提問 11月 2, 2017 分類:Chapter 3: Branching, Looping and Functions | 用戶: nat236919 (5.9k 分)
ID: 30222 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 3k 瀏覽
12,783 問題
183,442 回答
172,219 留言
4,824 用戶