Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RANDOMIZE TIMER
- Max = 0
- FOR I = 1 TO 100
- A(I) = INT(RND * 100) + 1
- IF A(I) > Max THEN Max = A(I)
- NEXT I
- Count = 0
- FOR I = 1 TO 100
- IF A(I) = Max THEN Count = Count + 1
- NEXT I
- PRINT "Количество элементов равных максимальному:"; Count
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement