This commit is contained in:
2025-02-04 08:13:18 +03:00
parent bb35fb2db6
commit 8e36a1a11c
6 changed files with 142 additions and 2 deletions

View File

@ -0,0 +1,54 @@
#include <stdio.h>
int main(void) {
puts("a) x = 5 and y = 8");
int x = 5, y = 8;
if (y == 8)
if (x == 5)
puts("@@@@@");
else
puts("#####");
puts("$$$$$");
puts("&&&&&");
puts("\nb) x = 5 and y = 8");
if (y == 8) {
if (x == 5)
puts("@@@@@");
} else {
puts("#####");
puts("$$$$$");
puts("&&&&&");
}
puts("\nc) x = 5 and y = 8");
if (y == 8) {
if (x == 5)
puts("@@@@@");
} else {
puts("#####");
puts("$$$$$");
}
puts("&&&&&");
puts("\nd) x = 5 and y = 7");
x = 5, y = 7;
if (y == 8) {
if (x == 5)
puts("@@@@@");
} else {
puts("#####");
puts("$$$$$");
puts("&&&&&");
}
}