1 / 1

Алгоритм поиска max и min в массиве

нет. нет. B [ i ] > MaxB. B [ i ] < MinB. да. да. Алгоритм поиска max и min в массиве. MaxB := B [ 1 ] ; Nmax := 1. MinB := B [ 1 ] ; Nmin := 1. i := 2 , 16. i := 2 , 16. MaxB := B [ i ] ; Nmax := i. MinB := B [ i ] ; Nmin := i.

nikkos
Download Presentation

Алгоритм поиска max и min в массиве

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. нет нет B [ i ] > MaxB B [ i ] < MinB да да Алгоритм поиска max и min в массиве MaxB := B [ 1 ] ; Nmax := 1 MinB := B [ 1 ] ; Nmin := 1 i := 2, 16 i := 2, 16 MaxB:=B [ i ] ; Nmax :=i MinB:=B [ i ] ; Nmin :=i MinB: = B [ 1 ] ; Nmin := 1 MaxB: = B [ 1 ] ; Nmax := 1 для i от 2 до 16 повторять для i от 2 до 16 повторять нц нц еслиB [ i] > MaxB еслиB [ i] < MinB тоMaxB: = B [ i ] ; Nmax :=i тоMinB: = B [ i ] ; Nmin :=i кв кв кц кц вывод MaxB вывод MinB вывод Nmax вывод Nmin

More Related