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
Declare a class vehicle and make it an abstract data type.
What happens if a pointer is deleted twice?
What is iterator c++?
How will you call C functions from C ++ and vice-versa?
Why we use #include conio h in c++?
Explain the concept of dynamic allocation of memory?
Can you explicitly call a destructor on a local variable?
What new()is different from malloc()?
Is facebook written in c++?
What is the rule of three?
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.
What is the difference between a reference and a pointer?
Does c++ vector allocate memory?
Is c++ an integer?
What is the difference between a type-specific template friend class and a general template friend class?