Toggle navigation
Courses
Questions
Tags
Users
AD 20160929 作業 3
0
like
0
dislike
973
views
請設計一程式,讓使用者輸入一個郵遞區號(3碼),程式會自動判斷該郵遞區號的所在地並輸出。
郵遞區號查詢請至下列網址尋找 3+2碼郵遞區號Excel檔 105/01(英文版, zip檔)
http://www.post.gov.tw/post/internet/Download/all_list.jsp?ID=2201#dl_txt_s_A0206
範例輸入1
500
範例輸出1
Changhua City
範例輸入2
974
範例輸入2
Shoufeng Township
[Exercise]
Coding (C)
-
asked
Sep 29, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 11795 -
Available when:
Unlimited
-
Due to:
Unlimited
|
973
views
comment
0
0
Called for Help
0
0
Called for Help
0
0
Called for Help
0
0
Called for Help
0
0
Called for Help
Please
log in
or
register
to add a comment.
40
Answers
0
like
0
dislike
Hidden content!#include <stdio.h>
#include <stdlib.h>
int main()
{
int postalCode, num;
printf("Please input postal code:");
scanf("%d", &postalCode);
switch (postalCode)
{