Id and ship

int main(){
char ch;
int t,i;
scanf("%d",&t);
for(i=0;i<t;i++){
scanf("%c",&ch);
if(ch==‘B’|| ch==‘b’){
printf(“Battleship\n”);
}
if(ch==‘C’|| ch==‘c’){
printf(“Crusier\n”);
}
if(ch==‘D’|| ch==‘d’){
printf(“Destroyer\n”);
}
if(ch==‘F’|| ch==‘f’){
printf(“Frigate\n”);
}
}
return 0;
}

why my loop is getting iterated only once even though i have input the value of t >1.

what input you are providing?

The alphabets

Can you send your submission link?

When you enter any value. Then you press enter. This enter is also taking as input.
eg-
4
a
b
c
d
But actually it will take
4
enter
a
enter
b
You can use one more scanf or use cin if c++