program to print this triangle
*
* *
* * *
Answer Posted / maria
void main()
{
int i , j , k ;
for(i = 0 ; i < 3 ; i++)
{
for (k = 2 ; k >= i ; k--)
{
printf (" ") ;
}
for(j = 0 ; j<= i ; j++)
{
printf ("* " , i , j) ;
}
printf ("\n") ;
}
}
| Is This Answer Correct ? | 33 Yes | 13 No |
Post New Answer View All Answers
Why is polymorphism useful?
Is c++ a software?
If I is an integer variable, which is faster ++i or i++?
Difference between struct and class in terms of access modifier.
Which software is best for programming?
What is the use of volatile variable?
What is the last index number in an array of 100 characters a) 100 b) 99 c) 101
What are vectors used for in c++?
What is while loops?
What is c++ flowchart?
What are proxy objects in c++?
Is swift faster than go?
What are the various oops concepts in c++?
What is the arrow operator in c++?
What is the real purpose of class – to export data?