1 / 6

Structura repetitivă

Structura repetitivă. Instruc ţ iunea repetitivã. Instruc ţi unea repetitivã condi ţ ionatã posterior. Structură şi funcţionare. Executã instruc ţ iune cât-timp expresie ;. Pas 1: se executã instruc ţ iunea; Pas 2: se evalueazã expresia ;

paiva
Télécharger la présentation

Structura repetitivă

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. Structura repetitivă

  2. Instrucţiunearepetitivã Instrucţiunearepetitivãcondiţionatã posterior

  3. Structură şi funcţionare Executã instrucţiune cât-timpexpresie; • Pas 1: se executã instrucţiunea; • Pas 2: se evalueazãexpresia; • Pas 3: dacãvaloareaexpresieiestefals, se iese din instrucţiunea • cât-timp; dacãvaloareaexpresieiesteadevãrat, se revine la Pas 1.

  4. Observaţii: 1. Instrucţiunea se executã repetat, cât timp valoarea expresiei esteadevãrat. Pentru ca ciclulsã nu fie infinit, esteobligatoriu cainstrucţiunea care se executãsãmodificecelpuţinuna din variabilele care intervinînexpresie, astfelîncâtaceastasãpoatãlua valoarea fals. Deoarece evaluarea expresiei se face dupãexecuţia instrucţiunii, instrucţiunea se executã cel puţin o datã. 2. Instrucţiunea repetitivã condiţionatã posterior (Executã câttimp) poatefisimulatã cu ajutorulinstrucţiunii repetitive condiţionate anterior (Cât-timp) şi reciproc.

  5. Bibliografie • http://staticlb.didactic.ro/uploads/material/11/14/36//structurarepetitiva.pdf

  6. Realizat de: MihaiMihaela CiubanAncuta MateiIlie ToplicianDacian

More Related