Search:
Forum
Beginners
How to draw this triangle using for loop
How to draw this triangle using for loops in ncurses
May 14, 2013 at 1:55pm UTC
dgcharitha
(5)
#include <iostream>
using namespace std;
int main()
{
for (int x=1;x<=7;x++)
{
for(int i=1;i<=x;i++)
cout<<"*";
cout<<endl;
}
return 0;
}
Registered users can post here.
Sign in or register
to post.
C++
Information
Documentation
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs