Expand|Select|Wrap|Line Numbers
- #include<stdio.h>
- int gcd(int m ,int n)
- {
- if(m%n==0)
- return n;
- else return(n,m%n);
- }
- int main()
- {
- int x,y;
- printf("enter two numbers");
- scanf("%d",&x);
- scanf("%d",&y);
- int a=gcd(x,y);
- if(a==1)
- {
- printf("the numbers are co-prime");
- }
- return 0;
- }
Here when I run the code just after taking input there is no output so what is the reason for it , I gave input as 7 and 9 and I didn't get any output ,plz clarify this .