Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import static java.lang.System.*;
- import java.util.Scanner;
- import java.lang.Math;
- public class Lesson_13_Activity_Two {
- public static void main (String str[]) throws IOException {
- int x;
- Scanner scanner = new Scanner(System.in);
- System.out.println("Input a grade");
- x = scanner.nextInt();
- if(x >=60) {
- System.out.println("passing");
- }
- else {
- System.out.println("failing");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement