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
C_141126_ArrayMayorMenor01
Array Struct, Call-By-Reference, Malloc, Free, Init, Destroy ... Example
SOLUCION USANDO UN CICLO Y PUNTERO
Linked List
string.c
Matrix rotation 90-degree
Exercicio de C - Vetor Multidimensional
Don't ignore warnings
20171116_TARTAGLIA
Bitwise Operations