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 / mayank murari

#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,k;
for(i=1;i<4;i++)
{
for(j=4;j>=i;j--)
{
printf(" ");
}
for(k=1;k<2*i;k++)
{
printf("*");
}
printf("\n");
}

getch();
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c++ prototype?

1201


What is the outcome of cout< a) 16 b) 17 c) 16.5

1015


Write about a nested class and mention its use?

1097


What is an adaptor class or wrapper class in c++?

1209


Is turbo c++ free?

1071


What is the use of vtable?

1146


What is a block in c++?

1048


Array base access faster or pointer base access is faster?

2300


Why #include is used?

1063


Describe protected access specifiers?

1219


Write a program which uses Command Line Arguments

1178


What are arrays c++?

1100


Evaluate !(1&&1||1&&0) a) Error b) False c) True

1204


Define a nested class.

1074


how to access grid view row?

2236