How about those loops you make me go through, or is it hoops You keep me hanging on - PowerPoint PPT Presentation

1 / 17
About This Presentation
Title:

How about those loops you make me go through, or is it hoops You keep me hanging on

Description:

How about those loops you make me go through, or is it hoops? You keep me hanging on! for i=1:1:3 ... for i=1:2:3. end. i. 1. 2. 3. 4. for i=1:3:3. end. i. 1. 2 ... – PowerPoint PPT presentation

Number of Views:27
Avg rating:3.0/5.0
Slides: 18
Provided by: kaw56
Category:
Tags: hanging | hoops | keep | loops | make | those | through

less

Transcript and Presenter's Notes

Title: How about those loops you make me go through, or is it hoops You keep me hanging on


1
How about those loops you make me go through, or
is it hoops?You keep me hanging on!
2
for i113endi
  • 1
  • 2
  • 3
  • 4

3
for i123endi
  • 1
  • 2
  • 3
  • 4

4
for i133endi
  • 1
  • 2
  • 3
  • 4

5
abc0for i113 abcabc3endabc
  • 0
  • 3
  • 6
  • 9

6
abc3for i113 abcabciendabc
  • 3
  • 6
  • 9
  • 12

7
abc0for i113 abcabciendabc
  • 0
  • 3
  • 6
  • 9

8
abc3for i125 abcabciendabc
  • 5
  • 8
  • 9
  • 12

9
i0while (ilt3) abciendabc
  • 0
  • 2
  • 3
  • infinite loop

10
i0while (ilt3) abci ii1endabc
  • 0
  • 2
  • 3
  • 4

11
i0while (ilt3) ii1 abciendabc
  • 0
  • 3
  • 4
  • 5

12
Output of last lineabc20for i115 abciend
abc
  • 1
  • 5
  • 15
  • 20

13
Output of last lineabc0for i114 abcabcie
ndabc
  • 0
  • 4
  • 10

14
Output of last lineabc0for i115 abcabc3
endabc
  • 3
  • 7
  • 15
  • 26

15
Output of last lineabc5for i114 abcabc2
endabc
  • 5
  • 7
  • 8
  • 13

16
Output of last lineabc0for i224 abci2e
ndabc
  • 4
  • 16
  • 20

17
Output of last line isabc0for
i124 abci2endabc
  • 9
  • 10
  • 16
  • 25
Write a Comment
User Comments (0)
About PowerShow.com