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 do you differentiate between overloading the prefix and postfix increments?
Is c++ double?
write the code that display the format just like 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 6 5 4 3 2 1
What are the different types of Storage classes?
Why is swift so fast?
What are the different operators in C++?
What is size of null class?
Why are arrays usually processed with for loop?
What are the basic data types used in c++?
Write about all the implicit member functions of a class?
Difference between a homogeneous and a heterogeneous container
Can member functions be private?