program to print this triangle
*
* *
* * *
Answer Posted / vivek
!Program is executable in C++
#include<iostream.h>
#include<conio.h>
void main()
{
int i,j;
for(i=0;i<3;++i)
{
for(j=0;j<i;++j)
cout<<"* ";
cout<<"\n";
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How can you create a virtual copy constructor?
Is c++ a pure oop language?
What is a namespace in c++?
When should overload new operator on a global basis or a class basis?
What is virtual methods?
Can a constructor return a value?
What are the operators in c++?
Which software is used to run c++ program?
List down the guideline that should be followed while using friend function.
Is c++ primer good for beginners?
What is the use of ::(scope resolution operator)?
Does a derived class inherit or doesn't inherit?
Is c++ the hardest language?
Program to check whether a word is a sub-string or not of a string typed
What is Destructor in C++?