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

In a function declaration what does extern means?

1061


What is a .lib file in c++?

1002


Write a program to show polymorphism in C++?

1154


I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.

2799


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3929


What does the linker do?

1051


Can notepad ++ run c++?

1093


If a function doesn’t return a value, how do you declare the function?

1069


Explain how to initialize a const data member.

1143


what is pre-processor in C++?

1175


Do vectors start at 0 c++?

1035


What is an undefined reference/unresolved external symbol error and how do I fix it?

1132


Which compiler does turbo c++ use?

1085


why is iostream::eof inside a loop condition considered wrong?

1062


What programming language should I learn first?

1107