Question
Hello I need help writing a C program in putty that takes three integers and orders them from largest to smallest. We are supposed to
Hello I need help writing a C program in putty that takes three integers and orders them from largest to smallest.
We are supposed to use these functions:
void get_values(missing stuff);
void swap(int* x, int* y);
void print_values(int a, int b, int c);
void sorter(int* a, int* b, int* c);
Here is the main minus a few parts
int main(void)
{
int a;
int b;
int c;
get_values(missing stuff);
sorter(missing stuff);
print_values(missing stuff);
return 0;
}
Here is a sample execution:
Enter the value for a: 2
Enter the value for b: 3
Enter the value for c: 1
a = 3 and b = 2 and c = 1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started