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
Explain the properties and principles of oop.
What is the cout in c++?
Explain virtual class and friend class.
What are built-in functions? What is the syntax for the definition?
Should I learn c++ c?
What is DlgProc?
Which is best ide for c++?
What are the advantages of using const reference arguments in a function?
Give 10 points of differences between C & C++.
What is size_type?
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?
What is null and void pointer?
When does a 'this' pointer get created?
Who discovered c++?
What is virtual table?