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

How can you create a virtual copy constructor?

1133


Is c++ a pure oop language?

1122


What is a namespace in c++?

2143


When should overload new operator on a global basis or a class basis?

1134


What is virtual methods?

1179


Can a constructor return a value?

1355


What are the operators in c++?

1172


Which software is used to run c++ program?

1045


List down the guideline that should be followed while using friend function.

1112


Is c++ primer good for beginners?

1086


What is the use of ::(scope resolution operator)?

1123


Does a derived class inherit or doesn't inherit?

1126


Is c++ the hardest language?

1033


Program to check whether a word is a sub-string or not of a string typed

2085


What is Destructor in C++?

1252