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
What is c++ prototype?
What is the outcome of cout< a) 16 b) 17 c) 16.5
Write about a nested class and mention its use?
What is an adaptor class or wrapper class in c++?
Is turbo c++ free?
What is the use of vtable?
What is a block in c++?
Array base access faster or pointer base access is faster?
Why #include is used?
Describe protected access specifiers?
Write a program which uses Command Line Arguments
What are arrays c++?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
Define a nested class.
how to access grid view row?