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
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.
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
Implement bit Array in C.
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.
Differentiate between #include<...> and #include '...'
What is structure of c program?
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)
What is difference between structure and union in c?
Write a c program to demonstrate character and string constants?
what is the function of pragma directive in c?
List out few of the applications that make use of Multilinked Structures?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What is C language ?
How can I read data from data files with particular formats?
How do we make a global variable accessible across files? Explain the extern keyword?