第四课。
This commit is contained in:
13
04/Exercise03.c
Normal file
13
04/Exercise03.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int people[3] = {0};
|
||||
for (int i = 0; i < 3; i++) {
|
||||
people[i] = 1;
|
||||
if ((people[1] == 1 || people[1] == 0) && (people[2] == 1 || people[2] == 0) && (people[2] == 0 || people[2] == 1)) {
|
||||
printf("%d %d %d\n", people[0], people[1], people[2]);
|
||||
}
|
||||
people[i] = 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user