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 the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
What is sizeof array in c?
explain what is an endless loop?
What are the different types of linkage exist in c?
What is the difference between a function and a method in c?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Write a program to check armstrong number in c?
How can a string be converted to a number?
What oops means?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
why return type of main is not necessary in linux
Explain what is the difference between far and near ?
How can I implement a delay, or time a users response, with sub-second resolution?
What are register variables? What are the advantage of using register variables?