Programming Tutorials

Comment on Tutorial - Nested Loops in C++ By Daniel Malcolm



Comment Added by : Rashid Jabbar

Comment Added at : 2012-09-16 20:23:11

Comment on Tutorial : Nested Loops in C++ By Daniel Malcolm
answer of comment No, 17

#include<iostream>
#include<conio.h>
using namespace std;

void main()
{
for(int i=0;i<5;i++)
{
for(int j=5-i;j>0;j--)
{
cout<<"*";
}
cout<<endl;
}
getch();
}


View Tutorial