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

What is the difference between delegation and implemented-in-terms-of?

962


What do you mean by static variables?

1106


How do you flush a buffer in c++?

1059


What is tellg () in c++?

1237


Define upcasting.

988


Which software is used for c++ programming?

1042


Can we run c program in turbo c++?

1044


What is the use of "new" operator?

1071


How are the features of c++ different from c?

1017


What are the differences between malloc() and calloc()?

1110


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

981


How do you generate a random number in c++?

1033


Why do we use using namespace std in c++?

1030


How would you implement a substr() function that extracts a sub string from a given string?

996


what are the iterator and generic algorithms.

1915