hw
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user