
![]() |
很难的C!!!对菜鸟难如登天?对老鸟易如反掌?我是菜鸟! |
int opt = 0;
System.out.println("---------\n");
System.out.println("MAIN MENU\n");
System.out.println("---------\n");
System.out.println("1-MATRIX ADDITION\n");
System.out.println("2-MATRIX SUBTRACTION\n");
System.out.println("3-MATRIX MULTIPLICATION\n");
System.out.println("4-MATRIX TRANPOSE\n");
System.out.println("5-EXIT\n");
while(opt!=5){
opt = Integer.parseInt(in.readLine());
switch(opt){
case 1:
System.out.print("doing Addition\n");
break;
case 2:
System.out.print("doing Subtraction\n");
break;
case 3:
System.out.print("doing Multiplication\n");
break;
case 4:
System.out.print("doing Tranpose\n");
break;
}
if(opt!=5){System.out.print("Any command?\n");}
}
System.out.println("\nExit program");
}
}
JBTALKS.CC |联系我们 |隐私政策 |Share
GMT+8, 2025-3-11 06:51 AM , Processed in 0.090424 second(s), 20 queries .
Powered by Discuz! X2.5 © 2001-2012 Comsenz Inc.
本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved
Dedicated Server powered by iCore Technology Sdn. Bhd.