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
What are arrays c++?
When do we run a shell in the unix system?
How many different levels of pointers are there?
Define a constructor - what it is and how it might be called (2 methods)?
what is data encapsulation in C++?
Can we use this pointer inside static member function?
What you know about structures in C++?
What are references in c++?
What are c++ stream classes?
How many types of scopes are there in c++?
Is c++ a pure oop language?
Does a derived class inherit or doesn't inherit?
What is the two main roles of operating system?
What is a singleton class c++?
What is an operator function? Describe the function of an operator function?