import java.util.Scanner;
public class HelloWorld{
public static void main(String[] args){
Scanner scanner=new Scanner(System.in);
//输入工资
System.out.println("请输入您的工资:");
double d1=scanner.nextDouble();
System.out.println("请输入您的保险:");
double d2=scanner.nextDouble();
double d3 =d1-d2-5000;
if(d3<=0){
System.out.println("您无须缴纳税");
}else if(d3<=3000){
double d4=d3*0.03;
System.out.println("应纳税额:"+d4);
}else if(d3<=12000){
//计算
double d5= d3*0.1-210;
System.out.println("应纳税额:"+d5);
}else if(d3<=25000){
//计算
double d6=d3*0.2-1410;
System.out.println("应纳税额:"+d6);
}else if(d3<=35000){
//计算
double d6=d3*0.25-2660;
System.out.println("应纳税额:"+d6);
}else if(d3<=55000){
//计算
double d7=d3*0.3-4410;
System.out.println("应纳税额:"+d7);
}else if(d3<=80000){
//计算
double d8=d3*0.35-7360;
System.out.println("应纳税额:"+d8);
}else {
//计算
double d9=d3*45-15160;
System.out.println("应纳税额:"+d9);
}
}
}
import java.util.Scanner;
public class HelloWorld{
public static void main(String[] args){
for(int i=0;i<=100;i++){
if(i%7==0){
System.out.println("过"+"\t\t");
}
}
}
}
import java.util.Scanner;
public class HelloWorld {
public static void main(String[] args) {
//公鸡的范围
for (int x1 = 0; x1 < 20; x1++) {
//母鸡的范围
for (int y1 = 0; y1 <= 33; y1++) {
//小鸡
int z = 100 - x1 - y1;
if (z%3==0& x1*5+y1*3+z/3==100){
System.out.println(x1);
System.out.println(y1);
System.out.println(z);
}
}
}
}
}
结果图