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 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
Get step-by-step solutions from verified subject matter experts
