Page 114 - Trackpad_V5_Book 8
P. 114

SOME MORE PROGRAMS

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









            You will get the following output:












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











            You will get the following output:
















            Program 12: To create ticket vending simulation. If the age of a person lies between 20 to 40
            years, the price of the ticket will be Rs. 50. If the age of a person is less than 20 years or more than
            40 years then the price of the ticket will be Rs 30.























             112  Pro (Ver. 5.0)-VIII
   109   110   111   112   113   114   115   116   117   118   119