Midpoint of two number
While solving any mathematical problem it becomes important to find the number that is exactly between two numbers.
In this example we are finding a midpoint of two numbers by using the while loop.
The code of the program is given below:
Output of the Program: