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
Is c++ primer good for beginners?
Explain how overloading takes place in c++?
Is c the same as c++?
what does the following statement mean? int (*a)[4]
what is pre-processor in C++?
Is vector a class in c++?
What is the exit function in c++?
What is copy constructor? Can we make copy constructor private in c++?
Distinguish between new and malloc and delete and free().
Is python better than c++?
What is the full form of india?
What is virtual base class?
What is the best way to take screenshots of a window with c++ in windows?
Can I learn c++ without c?
Which coding certification is best?