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 n in c?

566


What is the condition that is applied with ?: Operator?

654


What are the rules for identifiers in c?

579


Why is c so popular?

640


What does a function declared as pascal do differently?

599






What does the error message "DGROUP exceeds 64K" mean?

720


Do character constants represent numerical values?

833


What is assert and when would I use it?

572


Can you write the algorithm for Queue?

1543


What is a program flowchart and how does it help in writing a program?

650


What does typedef struct mean?

646


What is an array? What the different types of arrays in c?

649


How can I remove the leading spaces from a string?

623


What is use of #include in c?

587


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

1730