(if else实现)
import javax.swing.*;
public class Tax1 {
public static void main(String[] args) {
String salary =JOptionPane.showInputDialog("","请输入您的工资");
int x= Integer.parseInt(salary);
if(x>800&&x<=1300)
{
System.out.println("您应该交税"+(x-800)*0.5);
}
else if(x>1300&&x<=2800)
{
System.out.println("您应该交税"+(x-800)*0.1);
}
else if(x>2800&&x<=5800)
{
System.out.println("您应该交税"+(x-800)*0.15);
}
else if(x>5800&&x<=28000)
{
System.out.println("您应该交税"+(x-800)*0.2);
}
else
{