Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 4.2: Following program demonstrate the use of if-statement, relational & logical operators, write this program in Oracle VM VirtualBox, compile it and run it.

image text in transcribed

Problem 4.2: Following program demonstrate the use of if-statement, relational & logical operators, write this program in Oracle VM VirtualBox, compile it and run it. Put the screenshot of code after writing in "vi editor" in solution section and screenshot of output in output section. #include main() { int a,b,c,max; printf ("Please Input three Numbers: "); //to display message on screen scanf("%d %d %d",&a,&b,&c); //to read input from keyboard ifa>b && a>c) //use of if-else-if statement and logical operators max=a; else if(b>a && bc) max=b; else max=c; printf (" The maximum of %d %d %d is =%d ", a,b,c,max); //to display output } Solution Section: Write above code in "vi editor" and put "screenshot" here. Output Section: Put "screenshot" of output here

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago