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
Find MAXIMUM of three distinct integers using a single C statement
Is array a primitive data type in c?
What is pointer in c?
Why we use stdio h in c?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
What should malloc() do?
What 'lex' does?
How variables are declared in c?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
Why do some versions of toupper act strangely if given an upper-case letter?
formula to convert 2500mmh2o into m3/hr
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
Write a C program in Fibonacci series.
What language is windows 1.0 written?
What is the use of header?