#include<stdio.h>
#include<stdlib.h>
int main(){
struct student{
char name[10];
int score;
};
struct student st1;
printf("Enter name: ");scanf("%s",st1.name);
printf("Enter score: ");scanf("%d",&st1.score);
printf("%s的成績是%d\n",st1.name,st1.score);
if(st1.score>=60) printf("恭喜您通過了\n");
else printf("抱歉您被當了\n");
system("pause");
return 0;
}
沒有留言:
張貼留言