#include<stdio.h>
int main(){
int n1,n2;
printf("\nEnter two numbers:");
scanf("%d %d",&n1,&n2);
while(n1!=n2){
if(n1>=n2)
n1=n1-n2;
else
n2=n2-n1;
}
printf("\nGCD=%d",n1);
return 0;
}
Chat with our AI personalities
3
The answer will depend on whether or not the relationship between the pairs of variables is transitive. In mathematics, not all relationships are transitive.For example, if the relationship is "is coprime with", then2 is coprime with 3, 3 is coprime with 4 but 2 is certainly not coprime with 4.
The product of the two numbers
Coprime numbers are those in which only 1 and that number (say 5) can be divisible by it. Both 5 and 7 would be coprime numbers because they are numbers divisible by only themselves and 1.
No 5 is a prime number and 12 is composite number