how can i get the output
54321
4321
321
21
1

in c programming........???? pls help......

Answer Posted / nagulmeera

#include<stdio.h>
#include<conio.h>
main()
{
for(int i=5;i<0;i--)
{
for(j=i;j!=0;j--)
{
printf("%d",j);
}
printf("\n");
}
getch();
}

Is This Answer Correct ?    4 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many header files are in c?

554


What are categories used for in c?

569


What are called c variables?

575


Why is structure important for a child?

604


Why & is used in c?

715






How will you find a duplicate number in a array without negating the nos ?

1649


What is a protocol in c?

560


List the difference between a While & Do While loops?

640


Explain how do you determine the length of a string value that was stored in a variable?

671


What is data types?

642


Explain high-order and low-order bytes.

670


Why c is called a mid level programming language?

607


Write a program to find the biggest number of three numbers in c?

589


What is difference between scanf and gets?

615


What is this infamous null pointer, anyway?

612