program to print this triangle
*
* *
* * *
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / jayasreesampath
#include<stdio.h>
main()
{
int i,j;
for(i=1;i<=3;i++)
{
for(j=1;j<=3;j++)
printf("\n",i,j);
}
}
| Is This Answer Correct ? | 23 Yes | 91 No |
What are inline functions?
What are the benefits of oop in c++?
Explain pass by value and pass by reference.
Explain static and dynamic memory allocation with an example each.
What is pair in c++?
Explain class invariant.
i have given a project to create examination seating plan system in c++. so can anyone send me the answer of this question quickly??????
What is the use of endl in c++?
How many static variables are created if you put one static member into a template class definition?
Name the operators that cannot be overloaded in C++?
What are the differences between a struct and a class in C++?
What is a virtual destructor?