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
Is c call by value?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
Explain what is the benefit of using #define to declare a constant?
Explain enumerated types in c language?
show how link list can be used to repersent the following polynomial i) 5x+2
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What is a built-in function in C?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
What is the use of bitwise operator?
What are qualifiers in c?
what is the structure pointer?
How can I delete a file?
What are unions in c?
How do I use strcmp?