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 is difference between class and function?
What are c++ redistributables?
What are the manipulators in c++?
Which bit wise operator is suitable for turning off a particular bit in a number?
Is c++ a good beginners programming language?
What does std :: flush do?
What is the need of a destructor? Explain with the help of an example.
What is array give example?
When can I use a forward declaration?
Explain method of creating object in C++ ?
What is setiosflags c++?
What is c++ flowchart?
Should a constructor be public or private?
What is the maximum combined length of command line arguments including the space between adjacent arguments?
Can a built-in function be recursive?