answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

void main()

{

int i, j,n;

printf("Enter The Number:- ");

scanf("%d",&n);

for(i=n;i>=1;i--)

{

for(j=n;j>=i;j--)

{

printf("%d",j);

}

printf("\n");

}

getch();

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you sort the following using a C for loop 5 54 543 5432 54321?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you print 5 54 543 5432 54321 in java using for loop?

With two nested loops. In the outer loop, a variable - we might call it "n" - would go from 5 down to 1, in the inner loop, the variable (whatever you call it) goes from 5 down to n. Write out each digit in the inner loop; in the outer loop you need to add the extra space.


54321 4321 321 21 1 what is the code in for loop?

public static void main(String[] args){ for(int i=0;i&lt;5;i++) { for (int j=


Flow chart using for loop?

There's a nice for Loop at the link below.


How do you exit in nested loop in java?

You may exit a nested loop in Java using a break with a label for the outer loop.


Fibonacci series using for loop in HTML?

HTML has no notion of a loop. This cannot be done.


How do you print 1 to 100 without using loop in php?

The best way to print the numbers 1 to 100 in PHP without using a loop is with the following code: echo implode("&lt;br&gt;", range(1,100)); You can replace the &lt;br&gt; with anything that you want to separate the numbers, such as dashes. I used a line-break in the example.


Write a java program to print the following output using the for loop 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5?

12345 1234 123 12 1


Where do you get loop the loop straws?

C, for loops, while loops, and do while loops are control structures forFor example, the following programs are functionally identical: While loop


How do you print square using for loops?

how to print "square" using for loop


How do you make a loop wav in HTML?

You add the following to your embed code: loop="true" &lt;html&gt; &lt;embed src="my_file.wav" hidden="true" loop="true"&gt;&lt;/embed&gt; &lt;/html&gt;


How does loop work?

In programming, a loop works by conditionally jumping to the start of the loop and repeating the instructions. If the condition evaluates false, execution continues to the next instruction, thus breaking out of the loop. We can also break out of a loop from within the body of the loop itself using another conditional jump which jumps out of the loop. If we jump backwards out of a loop we effectively create an intertwined loop, known as spaghetti code which is difficult to read and maintain. Structured loops help make it easier to digest the logic. In C, a jump is achieved using a goto and a label. However, structured loops using for, while and do-while statements make loops much easier to read and maintain.


Which of the following is NOT shared by all fishes?

single-loop blood circulation