Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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
Exploiting uninitialized variable
Hello w
18BCE2182 LAB FAT-2-A-ii
Array Struct, Call-By-Reference, Malloc, Free, Init, Destroy ... Example
Project 4 v.5
bitwise operations
tom grey wolf
good Job
structt
B_14118_RestasSucesivas