answersLogoWhite

0


Best Answer

Well There is no "functions"

but there is a way:

#include

main()

{

int n,num;

printf("Enter Number");

scanf("%d",n);

num = n%2;

if(n==1)

{

printf("Your number is Odd");

}

else

{

printf("Your number is Even");

}

return 0;

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Ascending and descending oreder using functions in c language?
Write your answer...
Submit
Still have questions?
magnify glass
imp