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
How should a contructor handle a failure?
Why is c++ called oops?
Why c++ is called oop?
What is an iterator class in c++?
Why do we need c++?
Eplain extern keyword?
Why do we need runtime polymorphism in c++?
What is an accessor in c++?
What are shallow and deep copies?
What is namespace & why it is used in c++?
What is the oldest programming language?
What are smart pointers?
What sorting algorithm does c++ use?
Explain the difference between realloc() and free() in c++?
Write a Program to find the largest of 4 no using macros.