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 a memory leak c++?

1212


What is helper in c++?

1144


Can static member variables be private?

1237


What is the difference between an enumeration and a set of pre-processor # defines?

1450


Should I learn c or c++ first?

1174


What are protected members in c++?

1178


How does atoi function work?

1174


Is c++ an integer?

1078


Describe the advantages of operator overloading?

1079


What is a float in c++?

1021


What is data types c++?

1065


What are register variables?

1208


What are the three forms of cin.get() and what are their differences?

1312


Are strings mutable in c++?

1192


What is the purpose of extern storage specifier?

1252