File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed
Nível 1 - Lógica/2 - Desvios Condicionais/exercícios/aula 01/soluções/marlonwq Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments