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++ a difficult language?
How much do coding jobs pay?
What do you mean by function and operator overloading in c++?
What is the difference between #define debug 0 and #undef debug?
Who was the creator of c++?
Can we use struct in c++?
What is a block in c++?
Explain shallow copy?
Explain the concept of copy constructor?
What does ios :: app do in c++?
What is the precedence when there is a global variable and a local variable in the program with the same name?
What is the best c++ ide?
Which programming language should I learn first?
When does a name clash occur in c++?
Is rust better than c++?