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
Explain built-in function?
When was c language developed?
What is the 'named constructor idiom'?
List some of the static data structures in C?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
What is the use of header?
How to throw some light on the b tree?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
What is modifier & how many types of modifiers available in c?
What is function prototype?
Explain what does the format %10.2 mean when included in a printf statement?
What does *p++ do?
What is the difference between break and continue?
What is a pointer variable in c language?
Why does everyone say not to use gets?