View Code of Problem 10

#include<iostream>

using namespace std;

int main(){
	int n;
	cin>>n;
	while(n--){
		int a,b,c,d;
		cin>>a>>b>>c>>d;
		if(c==d){
			d*=2;
			c=b;
			b=a;
			a=0;
		}
		if(c=b){
			c*=2;
			b=a;
			a=0;
		}
		if(b=a){
			b*=2;
			a=0;
		}
		printf("%d %d %d %d\n",a,b,c,d);
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 10