Toggle navigation
Courses
Questions
Tags
Users
AC 20161027 期中考 6
0
like
0
dislike
14.2k
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
Oct 27, 2016
in
2016-1 程式設計(一)AC
by
Shun-Po
(
18k
points)
ID: 15426 -
Available when:
2016-10-27 18:30:00
-
Due to:
2016-10-27 21:00:00
reshown
Oct 27, 2016
by
Shun-Po
|
14.2k
views
comment
0
1
Called for Help
0
0
Called for Help
Please
log in
or
register
to add a comment.
112
Answers
0
like
0
dislike
Hidden content!#include <stdio.h>
int main()
{
int d,t;
* * ** ** ** * ** ** * ** * * * **** * ** *
if (d<520000)
***** *** * * * * * *** *** * * **** * * ** ** * d * 5/100;
* *** ** *** ** ** * * **** * * *
** * *** * * * ** *** * * * * * * * * * (d<1170000)
* * *** * * * * * * * * * * * * *** * * ** * *** ** *** * * * * * ** * = (520000*5/100 )+(d-520000)*12/100;
* * ** * * * **** ***** ** * * * *
* *** * ** * *** * * * * *** ** * * * * ** * **** * * ** * * *** * **** (d<2350000)
* ** * *** * * * *** **** ** * * * ** * * ** * *** * ** ** ** * * * * ** * ** *** ** * * ** * = (520000*5/100 )+ 2350000*12/100+(d-1170000)*20/100;
* ** * * * * ** *** * ** * * * * ** * ** * * *** * ** * * * ** ** *
* * * * * * * * * ** * * * *** * * ** * ** ** * * * * * * * **** ** ** * * ** * *** (d<4400000)
** * * * * * * * ** * ** * * * * * * * * * * * * * *** * * ** *** * * * ** = (520000*5/100 )+ 2350000*12/100 + 4400000*30/100+(d-2350000)*30/100;
* ** * * **** * *** * ** * *** * * * * ** ** * ** **** * *** * *** * * ** * * *** ** * * * * *
*** * ** * * * * ***** * * *** * * * * * * * *** * * * * * * ** ** * **** * * * * * * * * * *** ** * * ** * * * *** * ** * *** ** *
* *** ** ** ** ** * * * * * * ** **** ** ** * * **** ** * ** * * ** * * ** * ** * **** * * * *** * * **** ** * * *** )+ 2350000*12/100 + 4400000*30/100 + 10000000*40/100+(d-4400000)*40/100;