Skip to content

Commit 03d38e8

Browse files
authored
Update and rename 1039.c to 1041.c
1 parent e3317a7 commit 03d38e8

File tree

2 files changed

+22
-32
lines changed

2 files changed

+22
-32
lines changed

Provas/1º Exame/Modelo - C/1039.c

Lines changed: 0 additions & 32 deletions
This file was deleted.

Provas/1º Exame/Modelo - C/1041.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#include <stdio.h>
2+
3+
int main() {
4+
double x, y;
5+
scanf("%lf %lf", &x, &y);
6+
if (x == 0 && y == 0) {
7+
printf("Origem\n");
8+
} else if (x == 0) {
9+
printf("Eixo Y\n");
10+
} else if (y == 0) {
11+
printf("Eixo X\n");
12+
} else if (x > 0 && y > 0) {
13+
printf("Q1\n");
14+
} else if (x < 0 && y > 0) {
15+
printf("Q2\n");
16+
} else if (x < 0 && y < 0) {
17+
printf("Q3\n");
18+
} else {
19+
printf("Q4\n");
20+
}
21+
return 0;
22+
}

0 commit comments

Comments
 (0)