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 difference between 123 and 0123 in c?
Why c is called top down?
What is the best way to comment out a section of code that contains comments?
What is meant by int main ()?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
How to set file pointer to beginning c?
What does p mean in physics?
Under what circumstances does a name clash occur?
What are the Advantages of using macro
How the c program is executed?
What are formal parameters?
Do pointers need to be initialized?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
How to find a missed value, if you want to store 100 values in a 99 sized array?
What is the deal on sprintf_s return value?