- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I cann't find how to write switch statement in Fortran from help.
I want to write something like this:
Switch(num)
case 1:
...
case 2:
...
return
Any advice?
Thanks!
Roy
I want to write something like this:
Switch(num)
case 1:
...
case 2:
...
return
Any advice?
Thanks!
Roy
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
select case (num)
case (1)
some code here
case (2:5)
some code here
case default
some code here
end select
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page