Taking age as input and finding if it is greater or equal to 60.
Taking age as input and finding if it is greater or equal to 60.
Take user input as a positive, negative or zero integer value and check if it is a non zero value.
A number is made absolute by removing its negative sign if present.
We collect weather temperature from user and do a range check, then if true will do multiple instructions in the if block scope.
Collecting a char input and checking the input as a digit or a non-digit.
Check if stock is finished using if-else selection condition
Checking for user’s entry being not an alphabet first, else tell that it is an alphabet
Checking for user’s entry being is an alphabet first, else tell that it is not an alphabet
Matching of userid and password in the same condition and if not matched giving a common mismatch message.
Test if a number is divisible by 7 or the last digit is 7, means whether the number is a buzz number.
Understanding the behaviour of if when nothing is done when if condition is true.
...