write a C++ programming using for loop:
*
* *
* * *
* * * *

Answer Posted / ashutosh garg

for(i=1 i<=5; i++){
for(j=1;j<=i;j++){
cout("*");
}//inner-for
cout("\n");
}//outer-for

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is time h in c++?

585


What is microsoft c++ redistributable 2013?

573


Mention the storage classes in c++.

645


Why is polymorphism useful?

563


Why c++ is the best language?

592






Explain virtual class and friend class.

597


What is the sequence of destruction of local objects?

556


What is the difference between a type-specific template friend class and a general template friend class?

554


What is a modifier in c++?

631


What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

578


What is private, public and protected inheritance?

587


What is the difference between an enumeration and a set of pre-processor # defines?

827


Is c++ free?

580


Is c++ low level?

576


Explain the uses of static class data?

595