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 / dhruv kaushal

//Made by- Dhruv Kaushal visit bestindiasongs.blogspot.com
//Programe starts from Next line

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int i,j,k,l;
for(i=1;i<=4;i++)
{
cout<<"\n";
for(j=4;j>=i;j--)

{
cout<<" ";
}
for(k=1;k<=i;k++)
{
cout<<"*";
}
for(l=2;l<=i;l++)
{
cout<<"*";
}
}
getch();
}

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we read/write Structures from/to data files?

1129


Differentiate between a copy constructor and an overloaded assignment operator.

1077


What is a character in c++?

1041


What is virtual base class uses?

1351


Describe the process of creation and destruction of a derived class object?

1115


What are c++ storage classes?

1098


what are the events occur in intr activated on interrupt vector table

1753


Explain binary search.

987


What size is allocated to the union variable?

1056


What is the use of volatile variable?

1085


What is an incomplete type in c++?

1276


In c++, what is the difference between method overloading and method overriding?

1139


What is the best way to take screenshots of a window with c++ in windows?

1051


What is the purpose of the "delete" operator?

1055


What does new return if there is insufficient memory to make your new object?

1033