Hi,
Sorry to disturb you again, but I got stuck another time :(((
I'm trying to code a program which ask me for letters and then tell me If they're in the alphabetic order.
I tried this one, It is working but it asks me for the first number and then says that they're not in the order.
What Am I doing wrong?
#include<stdio.h>
#include<conio.h>
int main()
{
char A,B,C;
printf("Donnez le 1er caractere\n");
scanf("%c",&A);
printf("Donnez le 2eme caractre\n");
scanf("%c",&B);
printf("Donnez le 3eme caractère\n");
scanf("%c",&C);
{
if (A<B && B<C)
printf("Ils sont rangés\n");
else
printf("Ils sont pas rangés\n");
}
getch();
return 0;
}