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 are the advantages of c++ over c?
What is void pointer in c++ with example?
What are features of c++?
What is singleton class in c++?
What is a map in c++?
Is c++ slower than c?
What is c++ code?
What is switch case in c++ syntax?
What is vectorial capacity?
What is function overloading in C++?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
Why can templates only be implemented in the header file?
How do I make turbo c++ full screen?
What is the exit function in c++?
What is the difference between a template and a macro?