(assuming I understand the description of your code correctly)
int number1 = read();
int number2 = read();
while(number1 > number2)
{
number1 = number1 + 2;
number2 = number2 * 2;
}
print(number2, number1)
Robert needs to write an algorithm that will allow him to input two numbers. A loop will begin if the first number is larger than the 2nd number. The first number will have 2 added to it, the 2nd number is doubled. After the loop is completed the 2 two numbers will be displayed – with the larger number displayed first.