how can i get the output
54321
4321
321
21
1

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

Answer Posted / code0090

for more go to
http://answerwale.co.cc/?p=22#comment-18

#include<stdio.h>
#include<conio.h>

int main()
{
int a=5;
int b=9;

while(a!=0){
for(int i=a;i>0;i--)
{
printf("%d",i);
}
printf("\n");
a--;
}
getch();
return 0;
}

Is This Answer Correct ?    6 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I read/write structures from/to data files?

546


Can true be a variable name in c?

557


Explain what is a static function?

631


What is the difference between typedef and #define?

543


What is pivot in c?

566






What does == mean in texting?

663


Do you have any idea how to compare array with pointer in c?

598


What do you mean by c what are the main characteristics of c language?

566


the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b

1906


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

649


Can you define which header file to include at compile time?

587


How can I implement sets or arrays of bits?

603


how can f be used for both float and double arguments in printf? Are not they different types?

608


What is the most efficient way to store flag values?

687


Can include files be nested? How many levels deep can include files be nested?

658