Untitled
unknown
plain_text
a year ago
665 B
4
Indexable
#include<stdio.h>
int main(void){
int x,y;
char a,b;
scanf("%c %d",&a,&x);
if(a<='L'){
printf("Bachelor\n");
}
else{
printf("Master\n");
}
y=x/100;
y=y%10;
if(y==1){
b='A';
}
if(y==2){
b='B';
}
if(y==3){
b='C';
}
if(y==4){
b='D';
}
if(y==5){
b='E';
}
if(y==6){
b='F';
}
if(y==7){
b='G';
}
if(y==8){
b='H';
}
if(y==9){
b='I';
}
printf("%c\n",b);
printf("%d\n",x/10000000);
printf("%d\n",x%100);
return 0;
}
Editor is loading...
Leave a Comment