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++ vector a linked list?
What is the best c++ book for beginners?
What is stoi in c++?
What is the full form of stl in c++?
What is singleton class in c++?
Is it possible to write a c++ template to check for a function's existence?
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
How is c++ different from java?
Differences between private, protected and public and give examples.
What is data structure in c++?
What is meant by a delegate?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
How important is c++?
Why are arrays usually processed with for loop?
Which programming language should I learn first?