write a C++ programming using for loop:
*
* *
* * *
* * * *
Answer Posted / devi
#include<iostream.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();
for(i=1;i<=4;i++)
{
for(j=1;j<=i;j++)
{
cout<<"*";
}
cout<<"\n";
}
getch();
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Write some differences between an external iterator and an internal iterator?
Explain container class.
What is function overloading in C++?
What is the difference between delegation and implemented-in-terms-of?
Explain what you mean by a pointer.
What is a local variable?
What are punctuators in c++?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
Can we use pointers in c++?
When do we run a shell in the unix system?
What is a stack c++?
What is virtual function? Explain with an example
Explain rtti.
Differentiate between C and C++.
What is the importance of mutable keyword?