Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 92 - 2619_PlusGPT V2.1_C-8
P. 92

    SOME MORE PROGRAMS

                       Program 5: To test whether a given number is positive.

                      You will get the following output:

                       Program 6: To test whether a given number is positive or negative.

                      You will get the following output:

                                 Let’s BaCk-uP

                             The if statement is the simplest conditional statement.
                             In the if…else statement, if the condition evaluates to True, the indented block following the if
                           statement is executed, otherwise the indented block after the else statement is executed.

                      90    Premium Edition-VIII

| 87 88 89 90 91 92 93 94 95 96 97 |