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 are the events occur in intr activated on interrupt vector table

1265


What is pointer to array in c++?

720


Is string data type in c++?

683


What is a map in c++?

689


What is a string example?

648






Explain deep copy and a shallow copy?

694


Is c++ built on c?

662


which of the following is not an secondary constant a) array b) real c) union

1374


What is difference between n and endl in c++?

664


Can c++ be faster than c?

691


What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?

726


What is helper in c++?

654


How many ways can a variable be initialized into in C++?

684


What is searching? Explain linear and binary search.

668


What is purpose of abstract class?

659