slide1 n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Алгоритм поиска max и min в массиве PowerPoint Presentation
Download Presentation
Алгоритм поиска max и min в массиве

Loading in 2 Seconds...

play fullscreen
1 / 1

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


  • 128 Views
  • Uploaded on

нет. нет. 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.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Алгоритм поиска max и min в массиве' - nikkos


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
slide1

нет

нет

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