Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

program to print this triangle
*
* *
* * *

Answer Posted / vivek

!Program is executable in C++

#include<iostream.h>
#include<conio.h>
void main()
{
int i,j;
for(i=0;i<3;++i)
{
for(j=0;j<i;++j)
cout<<"* ";
cout<<"\n";
}
getch();
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between class and function?

1089


What are c++ redistributables?

1038


What are the manipulators in c++?

1041


Which bit wise operator is suitable for turning off a particular bit in a number?

1115


Is c++ a good beginners programming language?

1072


What does std :: flush do?

1136


What is the need of a destructor? Explain with the help of an example.

1029


What is array give example?

1051


When can I use a forward declaration?

1101


Explain method of creating object in C++ ?

1107


What is setiosflags c++?

977


What is c++ flowchart?

1390


Should a constructor be public or private?

1032


What is the maximum combined length of command line arguments including the space between adjacent arguments?

999


Can a built-in function be recursive?

1026