program for following output using for loop?
1 2 3 4 5
2 3 4 5
3 4 5
4 5
5
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<=5;j++){
printf("%d ",j)
}
printf("\n");
}
getch();
}
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Why is c called c not d or e?
Give me the code of in-order recursive and non-recursive.
Why do we use pointer to pointer in c?
What is bss in c?
Is there a way to switch on strings?
What is null pointer in c?
Is c still used?
Explain #pragma statements.
What is the difference between near, far and huge pointers?
Why is c faster?
What are the types of assignment statements?
What are the different properties of variable number of arguments?
Explain the difference between call by value and call by reference in c language?
What is your stream meaning?
Explain what does it mean when a pointer is used in an if statement?