C Program to find GCD Using for loop and if Statement