2 like 0 dislike
210 views
寫一個程式讀入一個整數。如果該整數為偶數則輸出1,否則輸出0。

Sample Input 1:

-32

Sample Output 1:

1

Sample Input 2:

1

Sample Output 2:

0

 

參考書籍:由片語學習C程式設計
[Normal] Coding (C) - asked in Introduction to Computer Programming I (C) by (20.9k points)
ID: 21767 - Available when: Unlimited - Due to: Unlimited

edited by | 210 views
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.59.40
©2016-2024

Related questions

2 like 0 dislike
0 answers
[Normal] Coding (C) - asked Jan 18, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21777 - Available when: Unlimited - Due to: Unlimited
| 205 views
2 like 0 dislike
0 answers
[Normal] Coding (C) - asked Jan 18, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21776 - Available when: 1899-12-31 00:00:00 - Due to: Unlimited
| 197 views
2 like 0 dislike
0 answers
[Normal] Coding (C) - asked Jan 18, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21775 - Available when: Unlimited - Due to: Unlimited
| 206 views
2 like 0 dislike
0 answers
[Normal] Coding (C) - asked Jan 18, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21774 - Available when: Unlimited - Due to: Unlimited
| 231 views
2 like 0 dislike
0 answers
[Normal] Coding (C) - asked Jan 18, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21773 - Available when: Unlimited - Due to: Unlimited
| 206 views
12,783 questions
183,443 answers
172,219 comments
4,824 users