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 a program flowchart and how does it help in writing a program?
Explain zero based addressing.
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
What is a MAC Address?
Do you know the difference between exit() and _exit() function in c?
What are the three constants used in c?
write a program to find out prime number using sieve case?
What is a program flowchart?
What are header files? What are their uses?
Why does everyone say not to use gets?
Write a c program to demonstrate character and string constants?
How can you return multiple values from a function?
Apart from dennis ritchie who the other person who contributed in design of c language.
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
How does struct work in c?