3 喜歡 0 不喜歡
102 瀏覽
Write a program that reads an integer in [0,255] continuously and displays it in binary. For example, if the user enters 32, the program should display 00100000. For any value out of [0,255], display "Invalid number"

Sample Input 1:

256

Sample Output 1:

Invaid number

Sample Input 2:

10

Sample Output 2:

00001010
[正常] Coding (C) - 最新提問 分類:Introduction to Computer Programming I (C) | 用戶: (20.9k 分)
ID: 21873 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 102 瀏覽
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.126.166
©2016-2024

相關問題

3 喜歡 0 不喜歡
0 回答
[正常] Coding (C) - 最新提問 2月 6, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21867 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 95 瀏覽
6 喜歡 0 不喜歡
1 回答
[正常] Coding (C) - 最新提問 10月 16, 2017 分類:Introduction to Computer Programming I (C) | 用戶: thopd (12.1k 分)
ID: 27170 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 168 瀏覽
3 喜歡 0 不喜歡
0 回答
[正常] Coding (C) - 最新提問 1月 25, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21795 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 106 瀏覽
3 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 2月 12, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21926 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 116 瀏覽
3 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 2月 12, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21923 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 119 瀏覽
12,783 問題
183,443 回答
172,219 留言
4,824 用戶