In this example, we will explain to you write a CPP program to find a greater number between three numbers. To understand this topic it is necessary to have knowledge of the basic CPP. Please read this article carefully so that you can understand the program to find a greater number between three numbers.
First of all, you can imagine the output screen then build your logic.
Enter three number:45758989 is the Greatest number
You must have this knowledge
Program Logic
- We have to input three numbers from the user.
- With the help of conditional operators, we will examine the first two numbers. Which will be a larger number. We will assign it to a new variable.
- Will then apply a condition. And then we will examine the new variable with the third variable. Which will be bigger than both. That is our big number.
find greater number between three
Output Screen
Recommended
😊
Now next you are, write your code in the comment below.😊
0 Comments:
Post a Comment
Please do not enter any spam link in the comment box.