how can i get this by using for loop?
*
**
*
****
*
******
Answer Posted / suman_kotte
int i,j;
for(i=1;i<=3;i++)
{
print("*");
print("\n");
for(j=1;j<=i*2;j++)
print("*");
print("\n");
}
| Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
What is extern c used for?
What is the general form of a C program?
Explain 'far' and 'near' pointers in c.
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
What is line in c preprocessor?
What is the use of structure padding in c?
Explain why C language is procedural?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
How can I swap two values without using a temporary?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
What are different types of operators?
What do you mean by keywords in c?
Differentiate between #include<...> and #include '...'
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
What is the use of bitwise operator?