Having problems with Euclid's Algorithm

I am trying to make a Euclid’s Algorithm with Loop While process.
I need to get the program to:
input: smaller number followed by larger & output: greatest common divisor
1. Read two numbers
2. print out both numbers
3. REMAINDER = remainder of LARGER/SMALLER.
4. Loop while REMAINDER is not zero:
a. Set LARGER to SMALLER.
b. Set SMALLER to REMAINDER.
c. REMAINDER = remainder of LARGER/SMALLER.
d. End loop.
5. Print ‘Greatest common divisor is,’SMALLER.
6. end the program.....