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
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 is guard code in c++? When is the destructor called? What is a sequence in c++? what is data abstraction in C++? What are c++ redistributables? Define namespace in c++? What is a static member? What is an associative container in c++? What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages? Explain what are mutator methods in c++? What is a class template? Explain the term memory alignment? What do nonglobal variables default to
a) auto
b) register
c) static Why is c++ still used?