diff --git a/education/software development/ECE1400/Chapter.md b/education/software development/ECE1400/Chapter.md index 18fedbd..44c8ce8 100644 --- a/education/software development/ECE1400/Chapter.md +++ b/education/software development/ECE1400/Chapter.md @@ -31,5 +31,12 @@ printf("%d", i < j || k); > 4. Write a single expression whose value is either `-1`, `0`, or `1` depending on whether `i` is less than, equal to, or greater than `j`, respectively. ```c -(i ) -``` \ No newline at end of file +/* + If i < j, the output should be -1. + If i == j, the output should be zero + If i > j, the output should be 1. +*/ +(i > j) - (i < j) +``` + +> 6. Is the following `if` statement lega \ No newline at end of file