19 lines
236 B
C
19 lines
236 B
C
#include "stdio.h"
|
|
|
|
int main()
|
|
{
|
|
int i = 5;
|
|
int j = 7;
|
|
int x;
|
|
|
|
x = (i>j)-(j>i);
|
|
/*
|
|
* -1 if i less than j
|
|
* 0 if i equal to j
|
|
* +1 if i more than j
|
|
* */
|
|
|
|
printf("%d: ", x);
|
|
return 0;
|
|
}
|