what is the code for getting the output as
*
**
***
Answer Posted / anvesh
main()
{
printf("*\n**\n***);
}
OR
main()
{
int n,i;
while(n<3)
{
i=0;
while(i<=n)
{printf("*");i++;}
printf("\n); n++;
}
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is advantage of pointer in c?
Is c a great language, or what?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
Difference between constant pointer and pointer to a constant.
Is there a way to switch on strings?
What is strcmp in c?
Explain how can I make sure that my program is the only one accessing a file?
What is the meaning of 2d in c?
Dont ansi function prototypes render lint obsolete?
How to set file pointer to beginning c?
c program to compute AREA under integral
Can we declare a function inside a function in c?
What are void pointers in c?
What is the use of f in c?
What is volatile variable how do you declare it?