From e31c8eaaae389213e8c56e5cda7fb3e5afdec567 Mon Sep 17 00:00:00 2001 From: zleyyij <75810274+zleyyij@users.noreply.github.com> Date: Wed, 18 Sep 2024 11:32:12 -0600 Subject: [PATCH] vault backup: 2024-09-18 11:32:12 --- education/software development/ECE1400/Chapter.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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