Question: Note: use only if else and don't use any loop or nested loop A) Write a C++ program to compare two floating point numbers till
Note: use only if else and don't use any loop or nested loop A) Write a C++ program to compare two floating point numbers till 5 decimal place precision.
B) Write a program that takes year input and displays a message to show whether its a leap year or not.
C) Write a C++ program that takes a character from user as input and verifies its between a-z or A-Z. Then further apply a check whether its vowel or a consonant.
D) The base of a right-angle triangle is a; height is b. Base can only be integer, but height can be float. Enter all three angles of triangle.
Pythagoras theorem requires Its a right-angle triangle Then apply Pythagoras theorem to calculate hypotonus h.
Verify hypotonus is larger than both sides.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
