Question: 13 Part 2: Read three integer values from the keyboard. If the first value is even, then print the product of the second and third

 13 Part 2: Read three integer values from the keyboard. If

13 Part 2: Read three integer values from the keyboard. If the first value is even, then print the product of the second and third values. If the first value is odd, then print the sum of the second and third. Example runs with the program for this problem follow: $ ./a.out lab 1(b) solution by enter three integer values 5 6 7 Sum of last two = $ ./a.out lab 1(b) solution by enter three integer values -4 -3 -2 Product of last two = 6 A partial FORTRAN 90 program to accomplish the goals of this problem follows: !lab 1(b) solution by program lab1_b implicit none integer .. v1,12,13 print, "lab 1(b) solution by " print*, "enter three integer values" if print,"Product print "Sum of end Part 2 submission: Starting with the above partial code, complete the solution to this problem so it behaves as in the example run. DO NOT USE ANY VARIABLES BEYOND THOSE DECLARED. DO NOT ALTER THE PARTIAL CODE PROVIDED EXCEPT TO FILL IN YOUR INDIVIDUAL NAME IN THE PARTS BETWEEN THE ANGLE BRACKETS

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!