I can not figure out why this program does not work the way I wont.
This will compile and run but when you put in two numbers, like 5,50, the program said that 5 is the bigger number.Code:#include <stdio.h> int x, y; int main(void) { printf("\nEnter two numbers"); scanf("%d %d",&x,&y); printf("\n\n%d is bigger\n",((x>y)?x:y)); return 0; }
Any number on the left of the comma is called the bigger number.