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
What is endl?
What is the benefit of encapsulation?
What is iterator c++?
What are manipulators used for?
Refer to a name of class or function that is defined within a namespace?
When is the destructor called?
How would you use qsort() function to sort an array of structures?
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
What is a hash function c++?
What is a character in c++?
How a new element can be added or pushed in a stack?
How much is c++ certification?
If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
Write about a nested class and mention its use?
What is flush () in c++?