Page 114 - Trackpad_V1_Book 8_Flipbook
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 `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 Trackpad (Version 1.0)-VIII

