i want to make a program in which if we input 98765 than it give output as 9 8 7 6 5
please help me

You posted two threads without showing any effort. Ask us specific questions on HOW to solve a problem. Posting some code would help a lot.

here is the solution to ur question
#include<stdio.h>
#include<conio.h>
int main()
{int c;
for(c=9;c>=5;c--)
{printf("%d ",c);}}
this is one way to do the problem if its for only this no.......
for all numbrs ill send u the solution in next reply

commented: Stop by the forum rules and read them before posting again. -4
commented: I agree with Aia -- and next time use code tags -7

here is the solution to ur question

this is one way to do the problem if its for only this no.......
for all numbrs ill send u the solution in next reply

No it isn't -- it is the wrong solution. You better read the problem again.

i want to make a program in which if we input 98765 than it give output as 9 8 7 6 5
please help me

Hint: use mod operator % and division operator / in a loop

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.