为了账号安全,请及时绑定邮箱和手机立即绑定

请问为什么我的程序改成这样了还是不能出现控制台?

请问为什么我的程序改成这样了还是不能出现控制台?

年纪轻轻想有猫 2018-10-02 23:08:07
import java.util.Scanner;public class Haiku {    public void syllables(int A,int B,int C) {        if(A==5) {            if(B==7&&C==5) {                System.out.println("Yes");            }else {                System.out.println("No");            }        }else if(A==7) {            if(B==5&&C==5) {                System.out.println("Yes");            }else {                System.out.println("No");            }        }else {            System.out.println("No");        }            }    public static void main(String[] args) {        // TODO 自动生成的方法存根        Scanner sc=new Scanner(System.in);        //System.out.println("输入");        int A=sc.nextInt();        int B=sc.nextInt();        int C=sc.nextInt();        new Haiku().syllables(A, B, C);            }}
查看完整描述

2 回答

?
慕粉3759542

TA贡献1条经验 获得超0个赞

要换行,不然直接一溜往下,就看不到控制台了

查看完整回答
反对 回复 2018-10-03
?
car

TA贡献184条经验 获得超33个赞

有输出
每个数字输入后需要换行

查看完整回答
反对 回复 2018-10-03
  • 2 回答
  • 0 关注
  • 1887 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信