• 2022-06-09
    当输入数据:2763时,下面程序的运行结果是()。#includeintgbs(inta,intb){intc;a=a>0?a:-a;b=b>0?b:-b;c=a*b;if(c==0)return0;while(a!=b)if(a>b)a-=b;elseb-=a;returnc/a;}intgys(inta,intb){if(a*b==0)return0;a=a>0?a:-a;b=b>0?b:-b;while(a!=b)if(a>b)a-=b;elseb-=a;returna;}voidmain(){inta,b,c,d;scanf("%d%d",&a,&b);c=gbs(a,b);d=gys(a,b);printf("a=%db=%dgbs=%dgys=%d",a,b,c,d);}
    A: a=30b=63gbs=189gys=9
    B: a=27b=63gbs=190gys=10
    C: a=27b=63gbs=189gys=9
    D: a=27b=63gbs=188gys=10
  • 举一反三