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
Difference between struct and class in terms of access modifier.
What is an object in c++?
What is a driver program?
What is pure virtual function? Or what is abstract class?
What is the purpose of ios::basefield in the following statement?
What is the best c++ compiler?
How many keywords are used in c++?
What is ios class in c++?
Explain binary search.
Give an example of run-time polymorphism/virtual functions.
Write about the various sections of the executable image?
Explain what happens when a pointer is deleted twice?
Is c++ proprietary?
Why are pointers used?
What do you mean by friend class & friend function in c++?