1.5.1 If Statement

In a project folder called Selection, create each of the following classes:

if Demo

public class IFDemo {
    public static void main(String[] args) {

        int testscore = 76;


        if (testscore >= 50) {
            System.out.println("You pass with a test Score of  = " + testscore);
        } 
        
    }
}

Modify this program so that the test score is entered in a input dialog box

Comments