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 abstract data types in c++?
Which coding certification is best?
What is the difference between a template and a macro?
What is a singleton class c++?
State the difference between pre and post increment/decrement operations.
How do I run a program in notepad ++?
Can a built-in function be recursive?
What is :: operator in c++?
Definition of class?
What does it mean to declare a member variable as static?
Do vectors start at 0?
write infinite loop in C++ which does not use any variable or constant?