0% found this document useful (0 votes)
31 views11 pages

Programming Basics: Conditional Statements

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views11 pages

Programming Basics: Conditional Statements

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Revision – if Condition

Q1. Create a program to check whether the number is Positive number or Negative number.

Q2.

Q3.

Q4.
Q5. Write a programme to find Simple interest and then using if else condition
print the message if Simple interest is greater than 15,000 there is no interest
in loan otherwise there is 5 percent interest in loan.

Q6

Q7
Q8 Print the pounds of the suitcase weigh?
If the weight is greater than 50 then display “there is a 25 dollar charge for the luggage
that heavy” or display ‘No charge’ if the number is less than equal to 50.

Q9 Enter any five subjects and find the total and average:
If average is greater than equal to 65 then display “pass” or display “fail” if the
average is less then 65.

Q10. Display ‘Add to this house’ if the number of students in the house is fewer than six
or display ‘Full’ if the number is six or more.
Q11.
Q12.
Q13.
Q14
Q15
Q16
Q17
Q18

You might also like