Skip to content

Instantly share code, notes, and snippets.

@peter279k
Created May 21, 2017
Embed
What would you like to do?
TQC+ JAVA
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() {
System.out.println("Please enter score:");
int score = keyboard.nextInt();
if(score >= 60) {
System.out.println("You pass");
}
System.out.println("End");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment