function exchangeIfFirstIsGreater(a, b){
	if (a < b) {
		console.log(a, b);
	}
	else{
		console.log(b, a);
	}
}
/*Write an if statement that takes two double variables a and b 
and exchanges their values if the first one is greater than the second.
As a result print the values a and b, separated by a space.*/
Write an if statement that takes two double variables a and b
and exchanges their values if the first one is greater than the second.
As a result print the values a and b, separated by a space.
Write an if statement that takes two double variables a and b and exchanges their values if the first one is greater than the second . As a result print the values a and b separated by a space .
function exchangeIfFirstIsGreater(a, b){
	if (a < b) {
		console.log(a, b);
	}
	else{
		console.log(b, a);
	}
}
function exchangeIfFirstIsGreater ( a , b ) { if ( a < b ) { console . log ( a , b ) ; } else { console . log ( b , a ) ; } }
Write an if statement that takes two double variables a and b
and exchanges their values if the first one is greater than the second.
Write an if statement that takes two double variables a and b and exchanges their values if the first one is greater than the second .