问题:
源代码:
#include<stdio.h>
int main()
{
long int a,b,c;
scanf("%ld/%ld",&a,&b);
while(1)
{
if(b%a)
c=b/a+1;
else
{
c=b/a;
a=1;
}
if(a==1)
{
printf("1/%ld\n",c);
break;
}
else
printf("1/%ld + ",c);
a=a*c-b;
b=b*c;
if(a==3&&b%2==0)
{
printf("1/%ld + 1/%ld\n:,b/2,b);
bresk;}
}
}
标签:b%,ld,33,else,printf,打卡 From: https://www.cnblogs.com/ykznlxx/p/17432943.html