#include<reg52.h>
#define ZERO 0XC0;
#define ONE 0XF9;
#define TWO 0XA4;
#define THREE 0XB0;
#define FOUR 0X99;
#define FIVE 0X92;
#define SIX 0X82;
#define SEVEN 0XF8;
#define EIGHT 0X80;
#define NINE 0x90
#define unint unsigned int
b=0;
}
if(P2_1==0)
{
while(!P2_1);
b=1;
}
anjian();
switch(b)
{
case 0: frun();break;
case 1: zrun(); break;
default:break;
}
switch(a)
{
case 0:y=100; P3=ZERO;break;
case 1:y=75; P3=ONE; break;
case 2:y=60; P3=TWO; break;
case 3:y=45; P3=THREE;break;
case 4:y=35; P3=FOUR; break;
case 5:y=25; P3=FIVE; break;
case 6:y=20; P3=SIX; break;
case 7:y=15; P3=SEVEN;break;
case 8:y=10; P3=EIGHT; break;
case 9:y=5; P3=NINE; break;
default:break;
}