Write the logical statements for the following if:
a) Marks obtained is more than 95 for all students whose category is not T
b) Total marks is more than 550 for all students whose class is 3A or 3B
Answers
Answered by
4
"a) marks>95&&cat!='T'
b) tmarks>550&&(class==""3A""|| class==""3B"")
Here, marks is a integer variable which will contain the value of the marks scored, cat is a character type variable which will contain the character denoting the category, tmarks is a integer variable which will contain the value of the total marks scored by a student.
The class is a character array which will be used to store the value of the class of the student."
Similar questions