program to print this triangle
*
* *
* * *

Answer Posted / roma

for(i=1; i<=3; i++)
{
cout<<"*"
}
getch();

Is This Answer Correct ?    4 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Should I learn c or c++ first?

564


Explain how to initialize a const data member.

592


What do you mean by friend class & friend function in c++?

620


Explain unexpected() function?

582


How java is different from c and c++?

635






What are the differences between malloc() and calloc()?

611


What is insertion sorting?

659


How to declare an array of pointers to integer?

580


What is the role of C++ shorthand's?

672


What is c++ good for?

583


Out of fgets() and gets() which function is safe to use?

641


What are references in c++?

652


What is the purpose of templates in c++?

563


Why do we use setw in c++?

640


What is a tuple c++?

540