Flow Chart To Program 1

#include<stdio.h>;
#include<stdlib.h>;

int main()
{
int n,x,y;
scanf("%d%d%d",&n,&x,&y);
int ctr=1;

while(ctr<n)
{
if(x%ctr==0 | | y%ctr==0)
{
if(x%y==0 || y%x==0)
{
printf("%d",ctr);
}
}
ctr++;
}
printf("%d",n);
}

Leave a Reply

Your email address will not be published. Required fields are marked *

More posts. You may also be interested in.