用下面的scanf()函数输入数据,使a=3,b=7,x=8.5,y=71.82,c1=’A’,c2=’a’;
main()
{
int a,b;
float x,y;
char c1,c2;
scanf(“a=%d b=%d ”,&a,&b);
scanf(“ x=%f y=%e ”,&x,&y);
scanf(“ c1=%c c2=%c”,&c1,&c2);
printf(“a=%d b=%d ”,a,b);
printf(“ x=%f y=%e ”,x,y);
printf(“ c1=%c c2=%c”,c1,c2);
}
九州编程