Skip to content

Commit adb4971

Browse files
authored
Merge pull request #5 from marlonwq/MARLONWQ
Problemas e Soluções aula 01 do conteúdo 2
2 parents a4752f1 + b2c6e1c commit adb4971

File tree

6 files changed

+35
-0
lines changed

6 files changed

+35
-0
lines changed
Binary file not shown.
Binary file not shown.

Nível 1 - Lógica/2 - Desvios Condicionais/exercícios/aula 01/soluções/b1.cpp

Whitespace-only changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include <iostream>
2+
using namespace std;
3+
4+
int main() {
5+
int SC, MM, CK;
6+
cin >> SC >> MM >> CK;
7+
if (SC == 30) {
8+
cout << "PROXIMO MUNDO";
9+
}
10+
else {
11+
cout << (30 - SC) << " " << (6 - MM) << " " << (3 - CK);
12+
}
13+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#include <iostream>
2+
using namespace std;
3+
4+
int main() {
5+
int N, valor, total;
6+
cin >> N >> valor;
7+
total = N * valor;
8+
9+
if (total >= 7500) {
10+
cout << "Vara de Iridio";
11+
} else {
12+
if (total >= 1800) {
13+
cout << "Vara de Fibra de Vidro";
14+
} else {
15+
if (total >= 500) {
16+
cout << "Vara de Bambu";
17+
} else {
18+
cout << "Paciencia Firmino!";
19+
}
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)