2021-04-06

package com.di3;

import java.util.Scanner;

public class demo01 {

public static void main(String[] args){

System.out.println("请输入你的名字");

        Scanner scanner =new Scanner(System.in);

        int mingci = scanner.nextInt();

        if (mingci ==1 ){

System.out.println("麻省理工夏令营一个月");

        }

if (mingci ==2 ) {

System.out.println("笔记本电脑一台");{

}

if (mingci ==3) {

System.out.println("硬盘一个");

        }else {

System.out.println("去富士康吧");

        }

}

}

}

你可能感兴趣的:(2021-04-06)