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 difference between main and void main?
Differentiate between Macro and ordinary definition.
Explain about the constants which help in debugging?
What is nested structure?
What is the difference between constant pointer and constant variable?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
What is the difference between %d and %i?
Explain enumerated types in c language?
What is a class c rental property?
Explain modulus operator.
What is an expression?
What are the applications of c language?
What is the data segment that is followed by c?
What is the difference between class and object in c?
What is atoi and atof in c?