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
Do class declarations end with a semicolon? Do class method definitions?
Name the operators that cannot be overloaded in C++?
What do you mean by a template?
which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
Explain mutable storage class specifier.
What is low level language in simple words?
How does java differ from c and c++?
What is the most powerful coding language?
What are the new features that iso/ansi c++ has added to original c++ specifications?
Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
Tell me what are static member functions?
What is data abstraction? How is it different from data encapsulation?
Explain one method to process an entire string as one unit?
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
What is meant by forward referencing and when should it be used?