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 is the difference between inline functions and macros?
What are iterators in c++?
What are the differences between java and c++?
Can I run c program in turbo c++?
Explain this pointer?
What are templates? where we should use it?
What is rtti in c++?
Describe the syntax of single inheritance in C++?
What are access specifiers in C++?
What does it mean to declare a destructor as static?
Does c++ have arraylist?
Can a constructor be private?