Computer Science, asked by shashi007, 1 year ago

8.WAP to calculate tax for a taxable income of Rs 3,10,000 , if tax rate is fixed at 2.2% IN JAVA ONLY.

Answers

Answered by mishrarajan282
1
int income;
float tax;

if (income>=310000)
{
tax=float(income*2.2/100);
system.out.println("Amount of tax = ",+tax);
}

else
{
system.out.println("No tax is payable.");
}


I hope this will run.....if any error occurs then check out the syntax of system.out.println....function
Similar questions