write a C++ programming using for loop:
*
* *
* * *
* * * *

Answer Posted / amit

void main()
{
int i,j;
for(i=1;i<=4;i++)
{
for(j=1;j<=1;j++)
cout<<"*"
cout<<endl;

}
getch();
}

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is lambda in c++?

584


What is increment operator in c++?

568


You run a shell on unix system. How would you tell which shell are you running?

667


Write a program to find the Factorial of a number

585


What is a singleton class c++?

554






How to declaring variables in c++?

670


What is microsoft c++ redistributable 2013?

581


What do you know about near, far and huge pointer?

607


What is #include cmath?

667


Explain virtual destructor?

683


What is switch case in c++ syntax?

631


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

616


Which is the best c++ compiler for beginners?

572


What is polymorphism and its type in c++?

601


What is the use of cmath in c++?

598