Write a program to print this triangle:
*
**
*
****
*
******
*
********
*
**********
Don't use printf statements;use two nested loops instead.
you will have to use braces around the body of the outer
loop if it contains multiple statements.
Answer Posted / yk humble
5 cls
10 rem to print triangle
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is #define in c?
What is the difference between array and pointer?
Where static variables are stored in c?
Can you subtract pointers from each other? Why would you?
Why do we use null pointer?
What is calloc()?
How can I copy just a portion of a string?
explain what is fifo?
Why clrscr is used in c?
What are the 4 types of organizational structures?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
How will you divide two numbers in a MACRO?
Explain how many levels deep can include files be nested?
Differentiate between full, complete & perfect binary trees.
Do you know null pointer?