- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSquarePrinter.cpp
More file actions
Latest commit
24 lines (21 loc) · 445 Bytes
/
Copy pathSquarePrinter.cpp
File metadata and controls
24 lines (21 loc) · 445 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//CSC114-651
//Student: Christopher Yonek (700642859)
//Assignment: Print a square in a num x num formation.
//Date: September 2018
#include"pch.h"
#include<iostream>
usingnamespacestd;
intmain()
{
int number;
cout << "Enter a number and I'll give you a square\n";
cin >> number;
for (int col = 0; col < number; col++)
{
for (int row = 0; row < number; row++)
{
cout << "X";
}
cout << endl;
}
}