program for following output using for loop?
1 2 3 4 5
2 3 4 5
3 4 5
4 5
5
Answer Posted / atul shukla
#include<stdio.h>
void main()
{
int i,j;
for (i=1;i<=5;i++)
{
for(j=i;j<=5;j++)
printf("%d ",j);
printf("\n");
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
What is the purpose of macro in C language?
How many types of sorting are there in c?
explain what is a newline escape sequence?
What is scope of variable in c?
find out largest elemant of diagonalmatrix
if p is a string contained in a string?
Write a program to check palindrome number in c programming?
What standard functions are available to manipulate strings?
application attempts to perform an operation?
What is wrong in this statement? scanf(ā%dā,whatnumber);
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
write a program to display all prime numbers