Brian Su says to YSITD int a,b; scanf("%d/%d", &a, &b); int g = __gcd(a,b); cout<<a/g<<"/"<<b/g<<endl;