what is the code for getting the output as
*
**
***

Answer Posted / pooja sonawane

void main()
{
int i,j;
for(i=0;i<3;i++)
printf("\n");
for(j=0;j<i;j++)
printf("*");
}

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do header files do?

591


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

1448


If errno contains a nonzero number, is there an error?

780


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2219


What is the code in while loop that returns the output of given code?

1269






Are negative numbers true in c?

580


When should we use pointers in a c program?

614


Why we use void main in c?

576


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

846


How do you define structure?

551


Suggesting that there can be 62 seconds in a minute?

584


explain what are pointers?

603


What is the difference between functions abs() and fabs()?

631


Explain union.

625


Is fortran faster than c?

564