Execution main.c 7. Large, Larger, Largest 1 Fincludecstdio.h by Jay Vince Serato G Run Tests 3 // declare your function/s here Here we have three variables, a, b, and c. I want you to store in variable a the largest number. The variable b must contain the middle number, and the variable c the smallest number. 4 5- int main(void) { 6. 7 Test Cases // Do not modify the main method except for your function call in line 16 int a, b, c; printf("Enter variable a: "); scanf("Kd", &a); printf("Enter variable b: "); scanf("Kd", &b); printf("Enter variable c: "); scanf("Kd", Sc); In the main method, you must call only a single method that you will create in line 16. You are not to add more lines in the main function. You are free to create more functions as you like. O Test Case1 9 10 11 12 13 Your Output Input No Output 1. The variable a 14 15 16 17 18 // call your function here Expected Output 2. The variable b 3. The variable c Enter variable a: 4 printf("\na - Kd", a); printf("\nb - Kd", b); printf("\nc - Xd", c); 19 Enter variable b: 9 Output 20 Enter variable c: 5 21 22 return 0; 23 } 24 Enter variable a: 4 Enter variable bi 9 25 // define your function/s here C-4 Enter variable ci 5 a-9 b-5 O Test Case 2 C4 O Test Case 3 O Test Case 4

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Large, Larger, Largest

Code in C language

Tests
Executions
main.c
7. Large, Larger, Largest
#include<stdio.h>
by Jay Vince Serato
E Run Tests
3 // declare your function/s here
Here we have three variables, a, b, and c. I want you to store in variable a the largest number.
4
The variable b must contain the middle number, and the variable c the smallest number.
5- int main(void) {
Test Cases
// Do not modify the main method except for your function call in line 16
int a, b,
printf("Enter variable a: ");
scanf("%d", &a);
printf("Enter variable b: ");
scanf("%d", &b);
printf("Enter variable c: ");
scanf("%d", &c);
In the main method, you must call only a single method that you will create in line 16. You are
c;
not to add more lines in the main function. You are free to create more functions as you like.
O Test Case 1
9
10
Your Output
Input
13
No Output
1. The variable a
// call your function here
Expected Output
2. The variable b
3. The variable c
Enter variable a: 4
printf("\na = %d", a);
printf("\nb = %d", b);
printf("\nc = %d", c);
Enter variable b: 9
Output
Enter variable c: 5
22
return 0;
a = 9
23 }
Enter variable a: 4
b = 5
24
Enter variable b: 9
25 // define your function/s here
C = 4
Enter variable c: 5
a = 9
b-= 5
O Test Case 2
C = 4
O Test Case 3
O Test Case 4
O Test Case 5 Hidden
Transcribed Image Text:Tests Executions main.c 7. Large, Larger, Largest #include<stdio.h> by Jay Vince Serato E Run Tests 3 // declare your function/s here Here we have three variables, a, b, and c. I want you to store in variable a the largest number. 4 The variable b must contain the middle number, and the variable c the smallest number. 5- int main(void) { Test Cases // Do not modify the main method except for your function call in line 16 int a, b, printf("Enter variable a: "); scanf("%d", &a); printf("Enter variable b: "); scanf("%d", &b); printf("Enter variable c: "); scanf("%d", &c); In the main method, you must call only a single method that you will create in line 16. You are c; not to add more lines in the main function. You are free to create more functions as you like. O Test Case 1 9 10 Your Output Input 13 No Output 1. The variable a // call your function here Expected Output 2. The variable b 3. The variable c Enter variable a: 4 printf("\na = %d", a); printf("\nb = %d", b); printf("\nc = %d", c); Enter variable b: 9 Output Enter variable c: 5 22 return 0; a = 9 23 } Enter variable a: 4 b = 5 24 Enter variable b: 9 25 // define your function/s here C = 4 Enter variable c: 5 a = 9 b-= 5 O Test Case 2 C = 4 O Test Case 3 O Test Case 4 O Test Case 5 Hidden
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY