package nanmoamituofo.jileshijie01;
public class HelloWorld{
public static void main(String[] args){
System.out.println("Hello Western Paradise");
}
}
package nanmoamituofo.jileshijie02;
import java.util.Scanner;
public class GetPrize{
public static void main(String[] args){
Scanner input=new Scanner(System.in);
System.out.print("请输入吴晗的念佛成绩:");
int score=input.nextInt();
if(score>=1000000){
System.out.println("阿弥陀佛说不错:奖励一个念佛机");
}
}
package nanmoamituofo.jileshijie03;
public class Exam{
public static void main(String[] args){
int score=0;
if(score>=10000){
System.out.println("上上人");
}else if(score>=5000){
System.out.println("妙好人");
}else{
System.out.println("好人");
}
}
}
package nanmoamituofo.jileshijie04;
public class GetMoney{
public static void main(String[] args){
if(money>=50000){
System.out.println("可以让5000个乞丐念十声佛");
}else if(money>=10000){
System.out.println("可以让1000个乞丐念十声佛");
}else if(money>=5000){
System.out.println("可以让500个乞丐念十声佛");
}else if(money>=1000){
System.out.println("可以让100个乞丐念十声佛");
}else{
System.out.println("可以让?个乞丐念十声佛");
}
}
}
package nanmoamituofo.jileshijie05;
import java.util.Scanner;
public class Test{
public static void main(String[] args){
double total=0;
double avg=0;
double score=0;
Scanner input=new Scanner(System.in);
for(int i=0;i<3;i++){
total=0;
System.out.prinln("请输入第"+(i+1)+"个人念佛的成绩");
for(int j=0;j<4;j++){
System.out.print("第"+(j+1)+"个人念佛的成绩:");
score=input.nextDouble();
total=total+score;
}
avg=total/4;
System.out.println("第"+(i+1)+"个人念佛的成绩:"+avg+"
");
}
}
}
package nanmoamituofo.jileshijie06;
public class Pool{
public static void main(String[] args){
int rows=15;
int cols=10;
System.out.println("打印装有七功德水的八宝池");
for(int i=0;i<rows;i++){
for(int j=0;j<cols;j++){
System.out.print("*");
}
System.out.println("");
}
}
}