Page 66 - Touchcode_C5_Flipbook
P. 66
F. Look at the conditionals and fill the output in the table. Time Taken
Min.
If (number is Prime) Number Print
16
Then D
print “PRIME” 3
Else If (number is Composite) 10
7
print “COMPOSITE” E
Else 75
61
print “NOT NUMBER”
33
Q
G. Write a program to check whether a given number is
negative or positive. If the number is positive, then print Min. Time Taken
“Positive number”. If the number is negative, then print
“Negative number”.
64 Touchcode–V

