標題:
201
[打印本頁]
作者:
許承鴻
時間:
2018-6-5 19:30
標題:
201
import java.util.Scanner;
public class JPA02 {
static Scanner keyboard = new Scanner(System.in);
public static void main(String[] args) {
test();
test();
}
public static void test() {
...
}
}
作者:
顏羽彤
時間:
2018-6-5 19:56
package date0605;
import java.util.Scanner;
public class JPA02
{
static Scanner keyboard = new Scanner(System.in);
public static void main(String[] args)
{
test();
System.out.println("End");
test();
System.out.println("End");
}
public static void test()
{
int num;
System.out.println("Please enter score:");
num = keyboard.nextInt();
if(num>60)
{
System.out.println("You pass");
}
}
}
複製代碼
作者:
張閎鈞
時間:
2018-6-5 19:57
package hi87;
import java.util.Scanner;
public class JPA02 {
static Scanner s=new Scanner(System.in);
public static void main(String[] args) {
test();
test();
}
public static void test() {
System.out.print("Please enter score :");
Scanner s=new Scanner(System.in);
int ss=s.nextInt();
if(ss>=60)
{
System.out.println("You pass");
}
System.out.println("End");
}
}
複製代碼
作者:
巫沛庭
時間:
2018-6-5 19:59
本帖最後由 巫沛庭 於 2018-6-5 20:00 編輯
import java.util.Scanner;
public class JPA02 {
static Scanner keyboard = new Scanner(System.in);
public static void main(String[] args)
{
test();
test();
}
public static void test()
{
int a;
System.out.println("Please enter score :");
a=keyboard.nextInt();
if(a>=60)
{
System.out.println("You pass");
}
System.out.println("End");
}
}
複製代碼
作者:
巫晉宇
時間:
2018-6-5 20:01
package dwaawd;
import java.util.Scanner;
public class wdawdawad {
static Scanner keyboard = new Scanner(System.in);
public static void main(String[] args) {
test();
test();
}
public static void test() {
System.out.print("Please enter score");
int s= keyboard.nextInt();
if(s>=60)
{
System.out.println("You pass");
}
System.out.println("End");
}
}
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://seed.istak.org.tw/)
Powered by Discuz! 7.2