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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!