> How to write a pseudocode?

How to write a pseudocode?

Posted at: 2014-12-18 
Pseudocode is an informal high-level description of the operating principle of a computer program or other algorithm. In other words, the abstract resemblance of a real program. In your case that would look like this:

(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.