double money = 35000,tax;
void setup() {
size(200, 200);
background(255);
if (money <= 15000) { tax = money * 10/100;}
else if(15000 < money && money <= 25000) {tax = money * 20/100;}
else if(25000 < money && money <= 35000) {tax = money * 30/100;}
else if(35000 < money) { tax = money * 40/100;}
println("Your money "+salary);
println("Your tax is = "+tax);
}
No comments:
Post a Comment