cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Create a square with nested loops
Create a square with nested loops
Aug 8, 2015 at 10:25am UTC
OOPs
(2)
http://www.cplusplus.com/ico/forum_question.png
How Do I create a square with 10 asterix using nested loops?
I have no Idea
Should I use a counter or no?
Aug 8, 2015 at 2:05pm UTC
mike9407
(142)
#include <iostream>
using namespace std;
int main(){
for(int i=0;i<10;i++)
{
for(int i=0;i<10;i++)
{
cout<<"*";
}
cout<<end;
}
return 0;
}
it might work as i think =]
Topic archived. No new replies allowed.