Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Assignment 5 part 2
#include <stdio.h> int main (void) { double income; double taxBurden; scanf("%lf", &income); printf("Please print the income you earned this year\n"); printf("You earned $%lf this year\n", income); if (income>=0) { if (income>50000) { if (income>100000) { if (income>=1000000){ taxBurden=income*.3; printf("Your tax burden is $%lf\n", taxBurden); } else {taxBurden=income*.2; printf("Your tax burden is $%lf", taxBurden);}} else { taxBurden=income*.1; printf("Your tax burden is $%lf", taxBurden);}} else printf("Your tax burden is $0");} else {printf("You have entered a negative number, please try again"); } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
prime or not
gcc compiler code for delay
Rightleftjustfy
Memoria dinamica no funciona ;C
a1
C_141113_VariosPerfectos
ATM
140114_CribaErasthotenes
array and its sum
strend
Please log in to post a comment.