Output for following program using for loop only
*
* *
* * *
* * * *
* * * * *

Answer Posted / sampath

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

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is calloc() function?

619


write a program to print data of 5 five students with structures?

1604


With the help of using classes, write a program to add two numbers.

615


What is use of bit field?

768


What are unions in c?

572






What does the format %10.2 mean when included in a printf statement?

1079


What is the benefit of using #define to declare a constant?

601


Can the “if” function be used in comparing strings?

586


Does sprintf put null character?

595


How do I get a null pointer in my programs?

614


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

1491


What is #include stdio h?

678


Why are algorithms important in c program?

614


Why is c called a structured programming language?

673


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

559