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

Answer Posted / dhruv sharma rkdf

#include<stdio.h>
#include<conio.h>
void main(){
int i,j;
clrscr();
for(i=1;i<=5;i++){
for(j=i;j>0;j--){
printf("*");
}
printf("\n");
}
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain built-in function?

587


When was c language developed?

697


What is the 'named constructor idiom'?

636


List some of the static data structures in C?

757


‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

1872






What is the use of header?

616


How to throw some light on the b tree?

600


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

933


What is modifier & how many types of modifiers available in c?

604


What is function prototype?

607


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

773


What does *p++ do?

581


What is the difference between break and continue?

602


What is a pointer variable in c language?

641


Why does everyone say not to use gets?

603