each time i input a letter for example, rtyy the output is long and i dont want it to read long it should input stupied. but when i input r it will give me long. So i need help on this
main()
{ char a;
system("cls");
scanf ("%c",&a);
if (a == 'r')
printf("\n long'");
else
if (a == 'b')
printf("\n short");
else
if (a!= 'r')
printf("\nstupied");
getch();
}