program to print this triangle
*
* *
* * *
Answer Posted / saravana kumar
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 ? | 7 Yes | 13 No |
Post New Answer View All Answers
What is object file? How can you access object file?
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
How do you flush std cout?
What is the type of this pointer in c++?
What is the fastest c++ compiler?
Is there structure in c++?
How is modularity introduced in C++?
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
Can a Structure contain a Pointer to itself?
Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened
Difference between pass by value and pass by reference?
Define what is constructor?
Why do you use the namespace feature?
What is the standard template library (stl)?
What is the need of a destructor? Explain with the help of an example.