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

You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

586


Explain rethrowing exceptions with an example?

604


How to access a variable of the structure?

583


What is a buffer c++?

581


Can I make ios apps with c++?

553






What is meaning of in c++?

668


If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

609


What is const in c++?

592


What is the operator in c++?

623


Do you know the problem with overriding functions?

570


What is class syntax c++?

590


Where can I run c++ program?

597


If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?

998


What is the extraction operator and what does it do?

608


What is the best c++ compiler for windows 10?

576