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


Please Help Members By Posting Answers For Below Questions

please send me the code for multiplying sparse matrix using c

1708


Can you write the algorithm for Queue?

1536


What is difference between structure and union?

586


What's the best way of making my program efficient?

613


How can I sort more data than will fit in memory?

612






Is c++ based on c?

640


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

647


Describe the header file and its usage in c programming?

607


What are the c keywords?

736


How can I find the modification date and time of a file?

590


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

1974


Explain how can I convert a string to a number?

623


What is c variable?

540


What does 1f stand for?

593


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1239