Write a program in C that sorts 3 given numbers, defined as (a,b,c) from highest to...

50.1K

Verified Solution

Question

Programming

Write a program in C that sorts 3 given numbers, defined as(a,b,c) from highest to lowest.

I already have this code finding the maximum. Need to just addthe sorting code onto it.

int A, B, C;

A = 4;

B=3;

C=7;

Max = A

If (B > max)

{

Max = B;

}

Else if (c > max)

{

Max = c;

}

Answer & Explanation Solved by verified expert
3.9 Ratings (762 Votes)
include void main int arr1100 int n i    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students