@vncpetrov/

nestedLoops

C++

No description

fork
loading
Files
  • main.cpp

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.539200780865176","path":"main.cpp","file":{"path":"main.cpp","content":{"asEncoding":{"base64":"I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgZm9yIChpbnQgciA9IDE7IHIgPD0gNTsgcisrKSB7CiAgICBjb3V0IDw8ICcqJzsKICAgIAogICAgZm9yIChpbnQgYyA9IDE7IGMgPCA1OyBjKyspIHsKICAgCSAgY291dCA8PCAiICoiOwogICAgfQogICAgY291dCA8PCBlbmRsOwogIH0KfQ=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>
using namespace std;

int main() {
  for (int r = 1; r <= 5; r++) {
    cout << '*';
    
    for (int c = 1; c < 5; c++) {
   	  cout << " *";
    }
    cout << endl;
  }
}