File tree Expand file tree Collapse file tree 3 files changed +47
-0
lines changed
Nível 1 - Lógica/3 - Estrutura de Repetição/exercícios/soluções/marlonwq Expand file tree Collapse file tree 3 files changed +47
-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 N;
6+ cin >> N;
7+ for (int i = 0 ; i <= 100 ; i++){
8+ cout << N * i << endl;
9+ }
10+ }
Original file line number Diff line number Diff line change 1+ #include < iostream>
2+ using namespace std ;
3+
4+ int main (){
5+ int N;
6+ cin >> N;
7+ for (int i = 0 ; i < N; i++){
8+ int P, M;
9+ cin >> P >> M;
10+ cout << P + M << endl;
11+ }
12+ }
Original file line number Diff line number Diff line change 1+ #include < iostream>
2+ using namespace std ;
3+
4+ int main () {
5+ int N;
6+ cin >> N;
7+
8+ int tradicional = 0 ;
9+ int geleia = 0 ;
10+
11+ for (int i = 0 ; i < N; i++) {
12+ int num;
13+ cin >> num;
14+ if (num == 10 ) {
15+ tradicional++;
16+ } else if (num == 11 ) {
17+ geleia++;
18+ }
19+ }
20+ if (tradicional > geleia) {
21+ cout << " Tradicional" << endl;
22+ } else {
23+ cout << " Geleia" << endl;
24+ }
25+ }
You can’t perform that action at this time.
0 commit comments