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
In C programming, what command or code can be used to determine if a number of odd or even?
What is a good way to implement complex numbers in c?
What happens if you free a pointer twice?
What are enumerated types?
What is call by reference in functions?
Is main a keyword in c?
What does != Mean in c?
What is spark map function?
What are the 4 data types?
What is the difference between int main and void main in c?
how to execute a program using if else condition and the output should enter number and the number is odd only...
Why is event driven programming or procedural programming, better within specific scenario?
What is abstract data structure in c?
in iso what are the common technological language?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above