how can i get the output
54321
4321
321
21
1

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

Answer Posted / jayaraj.s

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

getch();
}

Is This Answer Correct ?    86 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

637


What is main function in c?

535


What is difference between constant pointer and constant variable?

609


what are the different storage classes in c?

650


How can I manipulate individual bits?

594






Why is c fast?

592


What are loops c?

604


What is the scope of static variables in c language?

618


Explain what does the function toupper() do?

621


What is keyword in c?

582


Explain what is a const pointer?

626


Subtract Two Number Without Using Subtraction Operator

343


how to write optimum code to divide a 50 digit number with a 25 digit number??

2737


what is the function of pragma directive in c?

603


write a program to find out prime number using sieve case?

1626