Write a program that his output * *** *****

Answer Posted / srujitha

int main()
{
int n = 5;

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

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the method to save data in stack data structure type?

603


What is the difference between local variable and global variable in c?

687


What are the applications of c language?

624


what does static variable mean?

651


What is function pointer c?

586






You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

1781


What is structure padding and packing in c?

619


a program that can input number of records and can view it again the record

1482


What is the role of this pointer?

547


What are the different types of endless loops?

622


Calculate 1*2*3*____*n using recursive function??

1515


Which header file is used for clrscr?

577


Why ca not I do something like this?

585


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜nā€™ element.

1582


Are pointers really faster than arrays?

560