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

Answer Posted / babitha

# include <Stdio.h>
# include <conio.h>
# include <string.h>

void main()
{
int j,i,n;

scanf("%d",&n);

for (i=0;i<=n;i++)
{
for(j=0;j<i;j++)
printf("*");
printf("\n");
}

getch();

}

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can anyone suggest some site name..where i can get some good data structure puzzles???

1643


Which node is more powerful and can handle local information processing or graphics processing?

829


Write a code on reverse string and its complexity.

609


what value is returned to operating system after program execution?

1607


What is huge pointer in c?

586






List a few unconditional control statement in c.

561


Explain the advantages of using macro in c language?

582


How does pointer work in c?

621


Is anything faster than c?

587


What is ambagious result in C? explain with an example.

2058


What is the sizeof () a pointer?

550


What is the process of writing the null pointer?

607


What are the different types of pointers used in c language?

613


how many key words availabel in c a) 28 b) 31 c) 32

635


Why is c so important?

597