[c]代码库
#include <stdio.h>
#include<windows.h>
int main()
{
printf("====================================\n");
printf(" 1010101010101010101010101010101010\n");
printf(" 10 10 10 10\n");
printf("10 10 10 10\n");
printf("10101010101010101010101010101010 10\n");
printf("10 10 10 10\n");
printf("10 10 10 10\n");
printf("10 10 10 10\n");
printf("10 10 10 10\n");
printf("10 10 10 10\n");
printf("10 10 10 10\n");
printf("10 10101010101010101010101011010101010\n");
printf("10 10 10 10\n");
printf("10 1010\n");
printf("10101010101010101010101010101010\n");
printf("====================================\n");
sleep(2);
int a;
char b;
char c;
printf("input1:");
scanf("%d",&a);
if (a>=90)
{
printf("%d",a);
printf("\nclass:A\n");
sleep("10");
return 0;
}
else if(a>=80 && a<90)
{
printf("%d",a);
printf("\nclass:B\n");
return 0;
}
else if(a>=70 && a<80)
{
printf("%d",a);
printf("\nclass:C\n");
return 0;
}
else if(a>=60 && a<70)
{
printf("%d",a);
printf("\nclass:D\n");
return 0;
}
else
{
printf("Let's make up for the lessons.The grades are too bad !\n");
return 0;
if(a==0)
{
printf("Error !");
}
}
printf("input2:");
scanf("%d",&b);
if (b == 'y')
{
printf("input3:");
scanf("%d",&c);
if (c == 'A')
{
printf("%d",c);
printf("90+");
return 0;
}
else if (c == 'B')
{
printf("%d",c);
printf("[80,90)");
return 0;
}
else if (c == 'C')
{
printf("%d",c);
printf("[70,80)");
return 0;
}
else if (c == 'D')
{
printf("%d",c);
printf("[60,70)");
return 0;
}
}
else
{
printf("oh,my");
return 0;
}
return 0;
}
[源代码打包下载]