1 / 13

input(I) while I<17 do input(X,Y) if Y>0 then if X>0 OR Y=3 then

input(I) while I<17 do input(X,Y) if Y>0 then if X>0 OR Y=3 then Y := -X else Y:=-Y end_if_else else Y := X+Y end_if_else I := I+1 end_while. s1. s1 input(I) while I<17 do s2 input(X,Y) if Y>0 then

kail
Download Presentation

input(I) while I<17 do input(X,Y) if Y>0 then if X>0 OR Y=3 then

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. input(I) while I<17 do input(X,Y) if Y>0 then if X>0 OR Y=3 then Y := -X else Y:=-Y end_if_else else Y := X+Y end_if_else I := I+1 end_while

  2. s1 s1 input(I) while I<17 do s2 input(X,Y) if Y>0 then if X>0 OR Y=3 then s3 Y := -X else s4 Y:=-Y end_if_else else s5 Y := X+Y end_if_else s6 I := I+1 end_while s2 s5 s4 s3 s6

  3. s1 s1 input(I) while I<17 do s2 input(X,Y) if Y>0 then if X>0 OR Y=3 then s3 Y := -X else s4 Y:=-Y end_if_else else s5 Y := X+Y end_if_else s6 I := I+1 end_while b1 b2 s2 b3 b4 b6 b5 s5 s4 s3 s6

  4. c1: s1 c2: s1 input(I) while I<17 do s2 input(X,Y) if Y>0 then if X>0 OR Y=3 then s3 Y := -X else s4 Y:=-Y end_if_else else s5 Y := X+Y end_if_else s6 I := I+1 end_while c3: c4: b1 b2 s2 b3 b4 b6 b5 s5 s4 s3 s6

  5. c1: s1 c2: s1 input(I) while I<17 do s2 input(X,Y) if Y>0 then if X>0 OR Y=3 then s3 Y := -X else s4 Y:=-Y end_if_else else s5 Y := X+Y end_if_else s6 I := I+1 end_while c3: c4: b1 TT, TF, FT, FF b2 s2 b3 b4 b6 b5 s5 s4 s3 s6

  6. c1: s1 c2: s1 input(I) while I<17 do s2 input(X,Y) if Y>0 then if X>0 OR Y=3 then s3 Y := -X else s4 Y:=-Y end_if_else else s5 Y := X+Y end_if_else s6 I := I+1 end_while c3: c4: b1 TT, TF, FT, FF b2 s2 b3 b4 b6 b5 s5 s4 s3 s6

  7. c1: T s1 c2: s1 input(I) while I<17 do s2 input(X,Y) if Y>0 then if X>0 OR Y=3 then s3 Y := -X else s4 Y:=-Y end_if_else else s5 Y := X+Y end_if_else s6 I := I+1 end_while c3: c4: b1 TT, TF, FT, FF b2 s2 b3 b4 b6 b5 s5 s4 s3 s6

  8. c1: T s1 c2: s1 input(I) while I<17 do s2 input(X,Y) if Y>0 then if X>0 OR Y=3 then s3 Y := -X else s4 Y:=-Y end_if_else else s5 Y := X+Y end_if_else s6 I := I+1 end_while c3: c4: b1 TT, TF, FT, FF b2 s2 b3 b4 b6 b5 s5 s4 s3 s6

  9. c1: T s1 c2: T s1 input(I) while I<17 do s2 input(X,Y) if Y>0 then if X>0 OR Y=3 then s3 Y := -X else s4 Y:=-Y end_if_else else s5 Y := X+Y end_if_else s6 I := I+1 end_while c3: c4: b1 TT, TF, FT, FF b2 s2 b3 b4 b6 b5 s5 s4 s3 s6

  10. c1: T,F s1 c2: T s1 input(I) while I<17 do s2 input(X,Y) if Y>0 then if X>0 OR Y=3 then s3 Y := -X else s4 Y:=-Y end_if_else else s5 Y := X+Y end_if_else s6 I := I+1 end_while c3: T c4: T b1 TT, TF, FT, FF b2 s2 b3 b4 b6 b5 s5 s4 s3 s6

  11. c1: T,F s1 c2: T s1 input(I) while I<17 do s2 input(X,Y) if Y>0 then if X>0 OR Y=3 then s3 Y := -X else s4 Y:=-Y end_if_else else s5 Y := X+Y end_if_else s6 I := I+1 end_while c3: T c4: T b1 TT, TF, FT, FF b2 s2 b3 b4 b6 b5 s5 s4 s3 s6

  12. c1: T,F s1 c2: T s1 input(I) while I<17 do s2 input(X,Y) if Y>0 then if X>0 OR Y=3 then s3 Y := -X else s4 Y:=-Y end_if_else else s5 Y := X+Y end_if_else s6 I := I+1 end_while c3: T c4: T b1 TT, TF, FT, FF b2 s2 b3 b4 b6 b5 s5 s4 s3 s6

  13. c1: T,F s1 c2: T s1 input(I) while I<17 do s2 input(X,Y) if Y>0 then if X>0 OR Y=3 then s3 Y := -X else s4 Y:=-Y end_if_else else s5 Y := X+Y end_if_else s6 I := I+1 end_while c3: T c4: T b1 TT, TF, FT, FF b2 s2 b3 b4 b6 b5 s5 s4 s3 s6

More Related