0 like 0 dislike
4.1k views

12. 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>
#include <stdlib.h>

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

scanf("%d",a);

if(a%2!=0){
	print("Odd");
}else

print("Even");

	return 0;
}

 

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

21 Answers

0 like 0 dislike
Hidden content!
**** * * * ****
* * *** * * * *

/* run * ** ** the **** * ** or add your own * *** **** * * ***** or *** ** */

** ** * * * {
* a;

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

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

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

* * ** * * * 0;
}
100/100 answered by (252 points)
0 0
Case 0: Correct output
Case 1: Correct output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:108.162.241.238
©2016-2025

Related questions

0 like 0 dislike
21 answers
[Exam] asked Nov 15, 2017 in Mid-term examination by nat236919 (5.9k points)
ID: 32690 - Available when: Unlimited - Due to: 2017-11-15 16:10
| 4.2k views
0 like 0 dislike
18 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
ID: 32199 - Available when: Unlimited - Due to: 2017-11-15 16:30
| 3.9k views
0 like 0 dislike
22 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
ID: 31997 - Available when: Unlimited - Due to: 2017-11-15 16:10
| 2.5k views
0 like 0 dislike
22 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
ID: 31985 - Available when: Unlimited - Due to: 2017-11-15 16:10
| 2.5k views
0 like 0 dislike
20 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
ID: 31981 - Available when: Unlimited - Due to: 2017-11-15 16:10
| 2.1k views
12,783 questions
183,442 answers
172,219 comments
4,824 users