import java.io.*;
class Example
{
public static void main(String args[])
{
int tax1=0;
Console con = System.console();
int a= Integer.parseInt(con.readLine());
if(a<=100000)
System.out.println("No tax");
else if(a<=200000)
{
tax1=(a-100000)*5/100;
System.out.println("Tax is"+tax1);
}
else if(a<=300000)
{
tax1=5000+(a-200000)*10/100;
System.out.println("Tax is"+tax1);
}
else if(a<=400000)
{
tax1=15000+(a-300000)*15/100;
System.out.println("Tax is"+tax1);
}
else
{
tax1=30000+(a-400000)*20/100;
System.out.println("Tax is"+tax1);
}
}
}
Comments
Post a Comment