Created
November 8, 2012 10:47
-
-
Save opilar/4038101 to your computer and use it in GitHub Desktop.
Array_Basic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DIM as Integer n, m, S, Num, min | |
Input n | |
Input m | |
DIM A(n, m) | |
FOR I AS Integer = 1 TO n | |
FOR J = 1 as Integer TO m | |
Input A(I, J) | |
NEXT J | |
NEXT I | |
min = 32000 | |
FOR I AS Integer = 1 TO n | |
FOR J AS Integer = 1 TO m | |
S = S + A(J, I) | |
NEXT J | |
IF S < min THEN | |
min = S | |
Num = I | |
END IF | |
NEXT I | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment