Created
May 21, 2017 18:00
-
-
Save peter279k/7c6181d81fddd99374b38846256f30ef to your computer and use it in GitHub Desktop.
TQC+ JAVA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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