Toggle navigation
Courses
Questions
Tags
Users
AD 20161027 期中考 4
0
like
0
dislike
799
views
請設計一個程式,由使用者輸入一個二進位的數,程式會將他轉成十進位後輸出。
sample input:
10101010
sample output
170
[Exercise]
Coding (C)
-
asked
Oct 27, 2016
in
2016-1 程式設計(一)AD
by
Shun-Po
(
18k
points)
ID: 15398 -
Available when:
2016-10-27 18:30:00
-
Due to:
2016-10-27 21:00:00
reshown
Oct 27, 2016
by
Shun-Po
|
799
views
comment
Please
log in
or
register
to add a comment.
3
Answers
0
like
0
dislike
Hidden content!#include *** ** * * * *
#include ** ** ** ** * ***
int main(void)
{
** * * ** * ** * * i, n;
* ***** * * * * * *** ** * * *** ** * * * * &n);
*** * * * * * * * ** (i = 16; i; i >>= 1)
** * * * * ** ****** * * * *