0 like 0 dislike
831 views

11. There are some mistakes in the code, please fix them by using your compiler, and post your code here.

(can be answered 2 times)

#include <stdio.h>

int main(int argc, char *argv[]) {

int country_code;
scanf ("%d", &country_code);

if (country_code==886){
    printf("Taiwan");
}

else (country_code==976){
    printf("Mongolia");
}

else if (country_code==62){
    printf("Indonesia");
}

else if (country_code==66){
    printf("Thailand");
}

else
    printf("No");

    return 0
[Exam] asked in Mid-term examination by (5.9k points)
ID: 32690 - Available when: Unlimited - Due to: 2017-11-15 16:10
| 831 views

21 Answers

0 like 0 dislike
Hidden content!
#include ** * *** ** **

int main(int argc, char **** {

int ** **
scanf * * * * * ** *** **

if * * * *
* * * ** ** ** ** ***** *** * * ** ** * ***
}

else if *********
* * * * * ** * * * * *** *** * * **** ***
}

else if * *** * **
*** * * ** * * ** * * * **** ******** * *
}

else if * * * * **** *
* * * * * *** ***** * *** ** * * * **** ****
}

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

return 0;}
100/100 answered by (227 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct 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.127.9
©2016-2024

Related questions

0 like 0 dislike
21 answers
[Exam] asked Nov 15, 2017 in Mid-term examination by nat236919 (5.9k points)
ID: 32695 - Available when: Unlimited - Due to: 2017-11-15 16:10
| 752 views
0 like 0 dislike
19 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
ID: 32015 - Available when: Unlimited - Due to: 2017-11-15 16:30
| 698 views
0 like 0 dislike
22 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
ID: 31995 - Available when: Unlimited - Due to: 2017-11-15 16:10
| 527 views
0 like 0 dislike
22 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
ID: 31983 - Available when: Unlimited - Due to: 2017-11-15 16:10
| 451 views
0 like 0 dislike
21 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
ID: 31979 - Available when: Unlimited - Due to: Unlimited
| 380 views
12,783 questions
183,443 answers
172,219 comments
4,824 users