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 a storage class? Mention the storage classes in c++.
What is the use of bit fields in structure declaration?
What are the three forms of cin.get() and what are their differences?
Is dev c++ a good compiler?
What is the benefit of c++?
Explain differences between new() and delete()?
What is meant by entry controlled loop? What all C++ loops are exit controlled?
Can class objects be passed as function arguments?
How did c++ get its name?
Why is c++ considered difficult?
What do you mean by function pointer?
What is a modifier in c++?
What are c++ manipulators?
Why is main an int?
Is c++ a good first language to learn?