You are on page 1of 1

#include <stdio.

h>
int main(void) {
int x,y,i;
scanf("%d %d",&x,&y);
for (i=1;i<x,i<y;i++)
{
if(x%i==0&&y%i==0)
{
x=x/i;
y=y/i;
}
}
printf("%d / %d",x,y);
// your code goes here
return 0;
}

You might also like