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
Write a program to reverse a given number in c?
What is the heap in c?
How can I prevent another program from modifying part of a file that I am modifying?
What is the difference between Printf(..) and sprint(...) ?
What is the c value paradox and how is it explained?
What are the different types of pointers used in c language?
Suggesting that there can be 62 seconds in a minute?
What is clrscr ()?
What is console in c language?
Write a program to print “hello world” without using semicolon?
Is there any possibility to create customized header file with c programming language?
How do I use strcmp?
What is wild pointer in c?
What is the newline escape sequence?
is it possible to create your own header files?