怎么输出不对
#include "stdio.h"main()
{
int a,b;
float x,y;
char c1,c2;
scanf("%d%d",&a,&b);
scanf("%f%f",&x,&y);
scanf("%c%c",&c1,&c2);
printf("a=%d b=%d\n",a,b);
printf("x=%f y=%f\n",x,y);
printf("c1=%c c2=%c\n",c1,c2);
getch();
}
下面是执行:
7 8
5 6
Aa
a=7 b=8
x=5.000000 y=6.000000
c1=
c2=A
c1和c2的值为什么不正确
原想c1=A c2=a