5. In the program below how are the arguments passed and what will this program print? SUBROUTINE dice(n) IMPLICIT NONE REAL, SAVE :: x INTEGER, INTENT(OUT) :: n CALL RANDOM_NUMBER(x) n = INT(x*6.0)+1...


5. In the program below how are the arguments passed and what will this program<br>print?<br>SUBROUTINE dice(n)<br>IMPLICIT NONE<br>REAL, SAVE :: x<br>INTEGER, INTENT(OUT) :: n<br>CALL RANDOM_NUMBER(x)<br>n = INT(x*6.0)+1<br>END SUBROUTINE dice<br>PROGRAM main<br>IMPLICIT NONE<br>INTEGER :: die<br>CALL dice(die)<br>WRITE(*,1000)

Extracted text: 5. In the program below how are the arguments passed and what will this program print? SUBROUTINE dice(n) IMPLICIT NONE REAL, SAVE :: x INTEGER, INTENT(OUT) :: n CALL RANDOM_NUMBER(x) n = INT(x*6.0)+1 END SUBROUTINE dice PROGRAM main IMPLICIT NONE INTEGER :: die CALL dice(die) WRITE(*,1000) "die = ", die 1000 FORMAT(A, I1) END PROGRAM main

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here