I have to write a C++ code that computes the greatest common divisor of two numbers.

When Declaring x, y, temp, remainder as a Integer is this right? Or can someone help me in the right direction.

```
int x = 0;
int y = 0;
if (x < y) then
cout << temp = x;
cin >> x = y;
cout << y = temp
if else remainder = x % y
```