Infolinks - Earn Easy Money

Saturday, April 4, 2015

C++ program to sum the two numbers and repeats it unless sum becomes greater then 10

#include <iostream>
using namespace std ;
int main (  )
{
int a,b,c ;
do
{
cout <<" Enter the first number ";
cin >> a ;
cout <<" Enter the Second number ";
cin >> b ;
c=a+b;
cout << c << endl ;
}while (c<10);
return 0 ;
}

No comments:

Post a Comment

Must drop your comments about post.