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
Do class method definitions?
What is the use of pointer in c++ with example?
What are files in c++?
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop
What are friend classes?
How are the features of c++ different from c?
What is the use of endl?
What is #include cstdlib in c++?
What is the iunknown interface?
What is code reusability in c++?
Explain the purpose of the keyword volatile.
Can non graphic characters be used and processed in C++?
What are the storage qualifiers?
Does improper inheritance have a potential to wreck a project?
Is c++ a low level language?