scanf函数输入数据,做不出来,求指教
题目:用下面的scanf函数输入数据,使a=3,b=7,x=8.5,y=71.82,c1=‘A’,c2=‘a’.请问在键盘上如何输入?#include<stdio.h>
int main()
{
int a,b;
float x,y;
char c1,c2;
scanf("a=%db=%d",&a,&b);
scanf("%f%e",&x,&y);
scanf("%c%c",&c1,&c2);
return 0;
}
编译时直接打上a=3,b=7,x=8.5,y=71.82,c1=‘A’,c2=‘a’??
求解