这个结果有点奇怪?
#include<stdio.h>void main()
{
int i;
clrscr();
printf("-------------------------\n");
printf("i=1.\tEnter data\n",i);
printf("i=2.\tData processing\n",i);
printf("i=3.\tEnd\n",i);
printf("-------------------------\n");
scanf("i=d%\n",&i);
if(i=1)
printf("Enter data...\n");
else if(i=2)
printf("Data processing...\n");
else if(i=3)
printf("The end.\n");
else
printf("Error\n");
}
这个程序怎么运行的很奇怪呀?