-moz-user-select:none; -webkit-user-select:none; -khtml-user-select:none; -ms-user-select:none; user-select:none;

Monday, 30 March 2015

Addition of two numbers by "do-while" loop

Hello and Asalam o Alikum.I hope you all are fine by the grace of Allah Almighty.
In this blog,I will tell you how to add two numbers being entered by the user by using do-while loop.The reason of using this loop is to perform the same operation again and again same like our calculator in which we add two of more numbers several times.
So,the source code of this program is as follows:

Source code

khgamujtaba,C++

Output


khgamujtaba,C++

When the user enters "n",the loop will be terminated.

No comments:

Post a Comment