-
Write a program to check whether a year is a leap year or not.
-
Write a program to check whether a number is greater than, less than, or equal to zero.
-
Write a program to check whether a character is a vowel or consonant.
-
Write a program to check whether a number is a two-digit number or not.
-
Write a program to check whether a student has passed or failed (pass mark = 40).
-
Write a program to check whether a given number is divisible by both 3 and 7.
-
Write a program to find the greater of two numbers.
-
Write a program to check whether a temperature is hot (≥ 30°C) or not.
Write a program to check whether a number is a multiple of 10.
Write a program to check whether a person is a child (age < 13), teenager (13–19), or adult (20+).
Write a program to check whether a number is divisible by 2, 3, or neither.
Write a program to check whether a character is uppercase or lowercase.
Write a program to assign a grade (A/B/C/D/F) based on marks.


0 Comments:
Post a Comment