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



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. This code rocks!! any one having any trouble shoul
View Tutorial          By: Ankur at 2010-01-22 06:37:10

2. Thanks..
It is so easy to understand...

View Tutorial          By: Rahul Meshram at 2008-09-11 13:18:41

3. could somebody please tell a case where memcpy() w
View Tutorial          By: freak at 2011-02-09 20:29:26

4. Thnak you very much i got much of help for my proj
View Tutorial          By: Xshay at 2012-01-21 06:26:49

5. its is good..I am developing a Form based applicat
View Tutorial          By: Bhavani at 2010-10-18 01:39:41

6. how to trim in jsp page and to send the trimed con
View Tutorial          By: monishaa at 2015-07-16 10:06:11

7. it is good to unstand and easy to remember forever
View Tutorial          By: Abdul at 2011-11-10 21:03:41

8. How to execute above sqlstr file.
View Tutorial          By: shriyash at 2014-02-23 09:32:36

9. i want to know about simple java structure with br
View Tutorial          By: Rambahaz at 2009-09-07 06:41:25

10. I want to use the same code in c++,
Can a

View Tutorial          By: vijay at 2009-09-26 00:47:02