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 |
How is data hiding achieved in c++?
What is double in c++?
What is the difference between the functions rand(), random(), srand() and randomize()?
What is the best c++ book?
Please post the model question paper of hal?
What is the difference between global variables and local variable
What is the average salary of a c++ programmer?
Why is c++ considered difficult?
What are the two types of comments, and how do they differ?
Can the creation of operator** is allowed to perform the to-the-power-of operations?
Why do we use iterators?
What is a buffer c++?