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
What are the types of pointer?
Will a catch statement catch a derived exception if it is looking for the base class?
How do you invoke a base member function from a derived class in which you’ve overridden that function?
What is the extension of c++?
Keyword mean in declaration?
Why use of template is better than a base class?
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
What is the latest c++ version?
What methods can be overridden in java?
Can I have a reference as a data member of a class? If yes, then how do I initialise it?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
Are c and c++ different?
What is void pointer in c++ with example?
Is map ordered c++?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?