answersLogoWhite

0

#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

12y ago

What else can I help you with?

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=


What is the time complexity of using a while loop inside a for loop?

The time complexity of using a while loop inside a for loop is O(nm), where n is the number of iterations of the for loop and m is the number of iterations of the while loop.


How many times would the for loop execute in the following code snippet?

The for loop would execute 10 times in the following code snippet.


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.


How can you create a loop using a knot?

To create a loop using a knot, you can make a simple overhand knot in a rope or string and leave a small loop at the end. This loop can be used for various purposes such as attaching a hook or securing an object.


Fibonacci series using for loop in HTML?

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


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 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


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;