Menu

COJ 1933 – Og

January 1, 2017 - COJ

Yet another A+B problem with multiple input.

Language: C++

#include <iostream>
using namespace std;
 
int main() 
{
	int a,b;
	cin>>a>>b;
	while(a!=0 && b!=0)
	{
		cout<<a+b<<endl;
		cin>>a>>b;
	}
	// your code goes here
	return 0;
}

(36)

It's only fair to share...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on VK

Author of this post : safrastyan

Leave a Reply

Your email address will not be published. Required fields are marked *