how can i get the output
54321
4321
321
21
1
in c programming........???? pls help......
Answer Posted / rishabh upadhyay
#include<stdio.h>
void main(){
int i,j=5,temp=0;
for (i=1;i<=5;i++)
{
for (j=5-temp;j>=1;j--)
{
printf("%d",j);
}
printf("
");
temp=temp+1;
}
}
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Are pointers integer?
What is the difference between union and structure in c?
How many loops are there in c?
When should we use pointers in a c program?
Which function in C can be used to append a string to another string?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
When we use void main and int main?
Explain about the constants which help in debugging?
What is uint8 in c?
Are enumerations really portable?
write a c program to find the sum of five entered numbers using an array named number
Is it acceptable to declare/define a variable in a c header?
What is the difference between abs() and fabs() functions?
What is the most efficient way to count the number of bits which are set in an integer?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration