cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
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
(20)
#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;
}
Topic archived. No new replies allowed.