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

What is setbase c++?

625


Does c++ have a hash table?

546


How do you generate a random number in c++?

605


What is the use of cmath in c++?

592


What is the use of "new" operator?

658






What is c++ prototype?

589


Is it possible to use a new for the reallocation of pointers ?

601


Explain 'this' pointer and what would happen if a pointer is deleted twice?

609


How would you find out if a linked-list is a cycle or not?

555


What are stacks?

610


List down the guideline that should be followed while using friend function.

649


What is the best c++ compiler?

595


What is an overflow error?

621


What is a linked list in c++?

550


Should the this pointer can be used in the constructor?

556