Skip to content

Instantly share code, notes, and snippets.

@peter279k
Created May 21, 2017 18:00
Show Gist options
  • Save peter279k/7c6181d81fddd99374b38846256f30ef to your computer and use it in GitHub Desktop.
Save peter279k/7c6181d81fddd99374b38846256f30ef to your computer and use it in GitHub Desktop.
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