im sorry for posting again and again but i really want to learn i sure hope you understand... well anyways im trying alot of diffrent things simple things.. but anyways here is my prob
when i run this and i type in a it says get out of here
but then i type in b it also say get out of here
ggrr i dont see that i am doing something wrong but why it isnt working ggrr damn. i have bad luck today
#include <stdio.h>
#include <dos.h>
int main()
{
char b;
char a;
printf("Enter a value:");
scanf("%i",&b,&a);
if (b>a)
{
printf("The value is negative\n");
return 0;
}
else
{
printf("get out of here\n");
return 0;
}
}