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
Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.
What is a base class?
How can you quickly find the number of elements stored in a dynamic array?
Why do we use double in c++?
Can I make ios apps with c++?
What is the use of bit fields in structure declaration?
Is c++ still in demand?
In a function declaration, what does extern mean?
Write about the members that a derived class can add?
What is an accessor in c++?
What are abstract data types in c++?
What is the copy-and-swap idiom?
Explain storage qualifiers in c++.
What is a dynamic binding in c++?
Which c++ operator cannot overload?