Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. program test
  2.  
  3. implicit none
  4. character :: string*20
  5. integer :: i
  6. character, parameter :: operators*4 = '+-*/'
  7.  
  8. print *,'Enter string to calculate:' !can't input * or / ?
  9. read (5,*) string
  10. i=scan(string,operators)
  11. print *,string,operators,i
  12. stop
  13.  
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement