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 send me the code for multiplying sparse matrix using c
Can you write the algorithm for Queue?
What is difference between structure and union?
What's the best way of making my program efficient?
How can I sort more data than will fit in memory?
Is c++ based on c?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Describe the header file and its usage in c programming?
What are the c keywords?
How can I find the modification date and time of a file?
.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; }
Explain how can I convert a string to a number?
What is c variable?
What does 1f stand for?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.