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
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Why we not create function inside function.
In which header file is the null macro defined?
Why do we use stdio h and conio h?
What is the sizeof () a pointer?
What is methods in c?
Can a pointer point to null?
write a program fibonacci series and palindrome program in c
What is maximum size of array in c?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
What is the use of pragma in embedded c?
What is the concatenation operator?
i want to know the procedure of qualcomm for getting a job through offcampus
please explain every phase in the "SDLC" in the dotnet.