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

Answer Posted / sourisengupta

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

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

1716


What are the different types of objects used in c?

577


what is uses of .net

1277


Why does notstrcat(string, "!");Work?

643


hi send me sample aptitude papers of cts?

1654






What is #include stdlib h?

616


What is main function in c?

551


What is the acronym for ansi?

631


Write a program to identify if a given binary tree is balanced or not.

688


What is this pointer in c plus plus?

599


What is the difference between arrays and pointers?

637


How can a number be converted to a string?

608


Explain setjmp()?

660


What is ## preprocessor operator in c?

616


Write a program to find the biggest number of three numbers in c?

589