5421| 7
|
关于JAVA的一道题 |
50鱼币
最佳答案import java.util.Scanner;
public class test {
public static void main(String[] args) {
int b,n,s;
b=input("b");
n=input("n");
operation(b,n);
}
//input number
static int input(String msg){
int in;
while(true){
Scanner sc=new Scanner(System.in);
System.out.print("please input "+msg+": ");
in=sc.nextInt();
if ((in>=2) && (in
| ||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||
| ||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||
| ||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||
| ||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||
小黑屋|手机版|Archiver|鱼C工作室
( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)
GMT+8, 2025-4-5 12:31
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.