You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#include<stdio.h>
|
|
|
|
|
#include<time.h>
|
|
|
|
|
#include<stdlib.h>
|
|
|
|
|
|
|
|
|
|
int question( int i)
|
|
|
|
|
{
|
|
|
|
|
int a,b,j,m;
|
|
|
|
|
|
|
|
|
|
for( i = i;i<100;i++ )
|
|
|
|
|
{
|
|
|
|
|
a=rand()%51;
|
|
|
|
|
b=rand()%51;//rand()%100<30><30>ʾȡ50<35><30><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
j=rand()%2;//j<><6A>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD>Ӽ<EFBFBD><D3BC><EFBFBD>
|
|
|
|
|
|
|
|
|
|
if(j==0)
|
|
|
|
|
{
|
|
|
|
|
m=a+b;
|
|
|
|
|
if(m<=50)
|
|
|
|
|
{
|
|
|
|
|
printf("%d+%d=\n",a,b);
|
|
|
|
|
}
|
|
|
|
|
if(m>50) continue;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
m=a-b;
|
|
|
|
|
if(m<=50&&m>=0)
|
|
|
|
|
{
|
|
|
|
|
printf("%d-%d=\n",a,b);
|
|
|
|
|
}
|
|
|
|
|
if(m>50) continue;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return m;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
{
|
|
|
|
|
int ordinal=1;
|
|
|
|
|
|
|
|
|
|
char str[10];
|
|
|
|
|
int score[3]={10,7,5};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printf("\n");
|
|
|
|
|
printf("============================================================\n");
|
|
|
|
|
printf("====================50<35><30><EFBFBD>ڼӼ<DABC><D3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ====================\n");
|
|
|
|
|
printf("============================================================\n");
|
|
|
|
|
printf("\n");
|
|
|
|
|
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֣<EFBFBD>\n");
|
|
|
|
|
scanf("%s",str);
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѽ<EFBFBD><EFBFBD>%sС<73><D0A1><EFBFBD>ѣ<EFBFBD><D1A3><EFBFBD>ӭ<EFBFBD><D3AD><EFBFBD><EFBFBD>50<35><30><EFBFBD>ڼӼ<DABC><D3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3>\n",str);
|
|
|
|
|
printf("ÿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᣬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֱ<EFBFBD>Ӹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD>𰸡<EFBFBD>\n");
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD><EFBFBD>Խ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ijɼ<EFBFBD><EFBFBD>Լ<EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
printf("\n");
|
|
|
|
|
printf("======================Ҫע<D2AA><D7A2>ϸ<EFBFBD><CFB8>Ŷ~=========================\n");
|
|
|
|
|
|
|
|
|
|
printf("<EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD>⣺\n\n");
|
|
|
|
|
question(1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|