Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » Mathematics ProgramRSS Feeds

Find greatest common divisor of two no

Posted By: Jacob Evans     Category: C Programming     Views: 6885

Find greatest common divisor of two no.

Code for Find greatest common divisor of two no in C Programming

#include<stdio.h>
#include<conio.h>
void main()
{
    int x,y,z;
    clrscr();
    printf("\nEnter the value of X :- ");
    scanf("%d",&x);
    printf("\nEnter the value of Y :- ");
    scanf("%d",&y);
    if(x>y)
    {
        printf("\nTHIS NO.IS GREATER %d FROM THE %d ",x,y);
    }
    else
    {
        printf("\nTHIS NO.IS GREATER %d FROM  THE %d ",y,x);
    }
    getch();

}
  
Share: 


Didn't find what you were looking for? Find more on Find greatest common divisor of two no Or get search suggestion and latest updates.

Jacob Evans
Jacob Evans author of Find greatest common divisor of two no is from London, United Kingdom.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!