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


Please Help Members By Posting Answers For Below Questions

Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

720


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1304


Implement bit Array in C.

676


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

1497


Differentiate between #include<...> and #include '...'

617






What is structure of c program?

607


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)

1865


What is difference between structure and union in c?

546


Write a c program to demonstrate character and string constants?

1684


what is the function of pragma directive in c?

626


List out few of the applications that make use of Multilinked Structures?

1300


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

769


What is C language ?

1530


How can I read data from data files with particular formats?

604


How do we make a global variable accessible across files? Explain the extern keyword?

1422