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.
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
Applying discounts on price based on only 1 quantity or volume of purchase based slab.
With this program we can find who is elder amongst the friends of different age.
Understanding the behaviour of if when nothing is done when if condition is true.
Matching of userid and password in the same condition and if not matched giving a common mismatch message.
Write the output of the following c++ program when the user input value are -
Write the output of the following problem if the user given input is 1900, 20