Question: 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

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

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 0 { 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 if(a>b && a>c) //use of if-else-if statement and logical operators max-a; else if(b>a && b>c) max=b; else maxrc; printf (" The maximum of %d %d %d is =%d ",a,b,c.max); I to display output 3 Solution Section: Write above code in "vi editor" and put "screenshot" here....... Output Section: Put "screenshor" of output here....... Problem 4.3: Write a program in Oracle VM VirtualBox for Linux environment which demonstrate the use of for-loop and while loop, 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. Solution Section: .... Write the code of above question 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

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!