C if Else Questions Class9 Level
C if Else Questions Class9 Level
3. Greater or Smaller
4. Pass or Fail
If a student scores more than or equal to 33 marks, print "Pass", else print "Fail".
5. Check Divisibility
6. Grade Calculator
90-100: Grade A
70-89 : Grade B
50-69 : Grade C
33-49 : Grade D
0-32 : Fail
Input age and check if the person is eligible to vote (age >= 18).
Input a number (1-7). Print the day of the week using if-else.
Input units:
Input two numbers and an operator (+, -, *, /). Perform the operation using if-else.