Guest User

Untitled

a guest
Oct 22nd, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.       PROGRAM calc
  2.             INTEGER R, H, S, G, A, N
  3.            
  4.             R = 0
  5.             H = 0
  6.             S = 0
  7.             G = 0
  8.             A = 0
  9.             N = 0
  10.            
  11.             PRINT *, 'Input the rate'
  12.             READ (*,*) R
  13.            
  14.             PRINT *, 'Input the hours'
  15.             READ (*,*) H
  16.            
  17.             PRINT *, 'Input the salary'
  18.             READ (*,*) S
  19.            
  20.             G = R * H
  21.             A = G * S
  22.             N = A - G
  23.            
  24.             PRINT *, 'Netpay: ', N
  25.       END PROGRAM calc
Add Comment
Please, Sign In to add comment