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


Please Help Members By Posting Answers For Below Questions

Is c++ vector a linked list?

550


What is the best c++ book for beginners?

571


What is stoi in c++?

698


What is the full form of stl in c++?

675


What is singleton class in c++?

592






Is it possible to write a c++ template to check for a function's existence?

578


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?

590


How is c++ different from java?

561


Differences between private, protected and public and give examples.

577


What is data structure in c++?

659


What is meant by a delegate?

606


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

831


How important is c++?

531


Why are arrays usually processed with for loop?

770


Which programming language should I learn first?

575