Computer Science, asked by chittiguddi, 2 months ago

import java.util.*;
class Salary
{
public static void main()
{
double incometax;
Scanner input = new Scanner(System.in);
System.out.println("enter monthly salary");
int sal=input.next();
System.out.println("Enter name and subject specification");
String name=input.next();
String subsp=input.next();
double ans=sal*12;
if(ans>175000)
{
incometax=0.05*ans;
}
System.out.println("Income tax="+incometax);
}
}
is it correct?

Answers

Answered by ranisarkarofficial
0

This is absolutely correct

Similar questions