Question: Write a Fortran program (named myProg) to receive an integer number via keyboard entry and prints on the screen whether the number is even or

 Write a Fortran program (named myProg) to receive an integer number

Write a Fortran program (named myProg) to receive an integer number via keyboard entry and prints on the screen whether the number is even or odd. Hint: intrinsic functions mod and nint might be useful. Look at the following sample run: by running your program, the following messages and results should be printed accordingly on the screen (Green is keyboard entry). Sample 1: This program checks whether an integer number is even or odd. Please enter your number. Note: If you enter a decimal number, the nearest integer will be checked. 26 The entered number is even. Sample 2: This program checks whether an integer number is even or odd. Please enter your number. Note: If you enter a decimal number, the nearest integer will be checked. 38.7 The entered number is odd

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!