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
Difference between struct and class in terms of access modifier.
How java is different from c and c++?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
can any one help to find a specific string between html tags
which is changed to a sting..
weather.html looks (for location) is
What does the ios::ate argument do? What is low level language in simple words? What is the benefit of c++? What is a buffer c++? Is map thread safe c++? Can I uninstall microsoft c++ redistributable? What is the limitation of cin while taking input for character array? What happens when the extern "c" char func (char*,waste) executes? What is data binding in c++? What is binary object model? Why Pointers are not used in C++?