program to print this triangle
*
* *
* * *
Answer Posted / rajesh
#include<stdio.h>
main()
{
int i,j;
for(i=1;i<=3;i++)
{
for(j=1;j<=i;j++)
printf(""+"*",i,j);
}
}
Is This Answer Correct ? | 8 Yes | 58 No |
Post New Answer View All Answers
What is an inclusion guard?
Explain polymorphism?
What is difference between malloc()/free() and new/delete?
Can you use the function fprintf() to display the output on the screen?
Why do we use setw in c++?
Should a constructor be public or private?
What is an incomplete type in c++?
Is c++ proprietary?
When to use “const” reference arguments in a function?
Where do I find the current c or c++ standard documents?
What is increment operator in c++?
What's the best free c++ profiler for windows?
Tell me can a pure virtual function have an implementation?
What is the need of a destructor?
What is isdigit c++?