0 like 0 dislike
5.8k views
目前的所得稅累進稅率為:
0-520000 5%
520001-1170000 12%
1170001-2350000 20%
2350001-4400000 30%
4400001-10000000 40%
10000001- 45%
請撰寫一程式,由使用者輸入所得後計算出所得稅輸出。

sample input:

1000000

sample output:

83600
[Exercise] Coding (C) - asked in 2016-1 程式設計(一)AD by (18k points)
ID: 15427 - Available when: 2016-10-27 18:30:00 - Due to: 2016-10-27 21:00:00

reshown by | 5.8k views

41 Answers

0 like 0 dislike
Hidden content!
#include * * * *

#include ** * * **



int main()

{
** *** ** ** * * x;
***** * * * *** *** &x);
** * **** *** ** *** * * (x > 0 && x <= 520000)
*** **** ** * ** * * * * * * ** **
** *** * * ** * ** *** * ** * * *** * *** **** * * * * * * *** x * 0.05);
** * ** * ** * * ***
* * * *** ** ** ** * if (x > 520000 && x <= 1170000)
* ** *** *** *** *** *** * ** * ** * **
* * * *** * * ** * * * * ** * * * *** * * ** * x * 0.12);
* ** * ** ** * ** * * *
* *** * ** * * ** if (x > 1170000 && x <= 2350000)
* * * ****** ** * ** ***** * * * ** **** *
**** * * ** ** * * ** * * ** ******* * * ** * *** * x * 0.20);
*** * ** *** * ***
*** * * * * * ** * ** if (x > 2350000 && x <= 4400000)
* ** * ** ******* ** * ** * **** * ** *** **
* **** ** ** ******* **** *** * ** * * ** * * * x * 0.3);
* ** ****** ** * ***
** ****** ** **** ****** if (x > 4400000 && ** ** **** *
**** * *** ** **** * **** *** * **
** ** * **** * * * * ** *** * *** * * * * ** * x * 0.4);
** ******* * **** * *
* * * * * **** * if (x >10000000)
** * ***** * *
** * * * *********** * * * *** ** *** * * * ** *** x * 0.45);
* **** **** * ** *** * ***
** * **** ** ** ** *** ** 0;

}
answered by (56 points)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.214.112
©2016-2026

Related questions

0 like 0 dislike
5 answers
[Exercise] Coding (C) - asked Oct 27, 2016 in 2016-1 程式設計(一)AD by Shun-Po (18k points)
ID: 15448 - Available when: 2016-10-27 18:30:00 - Due to: 2016-10-27 21:00:00
| 1.3k views
0 like 0 dislike
33 answers
[Exercise] Coding (C) - asked Oct 27, 2016 in 2016-1 程式設計(一)AD by Shun-Po (18k points)
ID: 15445 - Available when: 2016-10-27 18:30:00 - Due to: 2016-10-27 21:00:00
| 4.7k views
0 like 0 dislike
11 answers
[Exercise] Coding (C) - asked Oct 27, 2016 in 2016-1 程式設計(一)AD by Shun-Po (18k points)
ID: 15441 - Available when: 2016-10-27 18:30:00 - Due to: 2016-10-27 21:00:00
| 2.5k views
0 like 0 dislike
73 answers
[Exercise] Coding (C) - asked Oct 27, 2016 in 2016-1 程式設計(一)AD by Shun-Po (18k points)
ID: 15439 - Available when: 2016-10-27 18:30:00 - Due to: 2016-10-27 21:00:00
| 8.4k views
0 like 0 dislike
28 answers
[Exercise] Coding (C) - asked Oct 27, 2016 in 2016-1 程式設計(一)AD by Shun-Po (18k points)
ID: 15421 - Available when: 2016-10-27 18:30:00 - Due to: 2016-10-27 21:00:00
| 4.4k views
12,783 questions
183,442 answers
172,219 comments
4,824 users