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
Is string an object in c++?
What is a hashmap c++?
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.
What is the use of cmath in c++?
Refer to a name of class or function that is defined within a namespace?
What is the iunknown interface?
What's the "software peter principleā?
How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?
What are vtable and vptr?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
Is multimap sorted c++?
What is an inclusion guard?
How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
What is #include ctype h in c++?