Simple question

How could I get a program to check if a numbered entered it twice as big as the second number entered.
For example,

If i enter 20 for my first number and 10 for my second number what kind of code would I write for this I know it simple but I am having trouble.
What I was thinking was this but I figured out it was just multiplying my first number by two. So I just need figure out how I can make it check if x is double the amount of y
 
if (x * 2 > y)
So instead of multiplying the first number (x) by two, you want to multiply the second number by 2.

If you're checking if they're equal, then the equality operator is ==.
Topic archived. No new replies allowed.