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 a memory leak c++?
What is helper in c++?
Can static member variables be private?
What is the difference between an enumeration and a set of pre-processor # defines?
Should I learn c or c++ first?
What are protected members in c++?
How does atoi function work?
Is c++ an integer?
Describe the advantages of operator overloading?
What is a float in c++?
What is data types c++?
What are register variables?
What are the three forms of cin.get() and what are their differences?
Are strings mutable in c++?
What is the purpose of extern storage specifier?