-->

C++ if..else programs

1) Write a program to know a number is even or odd.

                                                solution
2) Write a program to know a number is divisible by both 3 and 5 or not.

                                                 solution
3) Write program to know a number is positive or negative or zero.
                                                 solution

4)Write a program to know two numbers entered by you are same or not.

                                              solution
5) Write a program to get greatest number among three numbers.

                                                                                                   solution
6)Write a program to know a number entered by you lies between two values/range or not.

                                                                                                  solution
7)Write a program to get smallest number among three numbers.

                                                                                                 solution
8)Write a program to get sum or product or difference or quotient of two numbers using switch.


                                                                                             solution
9) Write a program to know a triangle is right angled or not.

                                                                                         solution

10) Write a program to know a triangle is equilateral or not.

                                                                                         solution
                                                                               

No comments:

Post a Comment