Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i = 1 to 20
- read num
- if i = 1 then Xmax = num
- if num >= Xmax then
- current = i
- Xmax = num
- end if
- next i
- print Xmax, current
- Data 12,-15,18 ' etc .....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement