149x Filetype PDF File size 0.36 MB Source: shms-prod.s3.amazonaws.com
ComputerProgrammingSkills(48021503-3) Chapter5:RepetitionStructure Second Term (1438-1439) DepartmentofComputerScience FoundationYearProgram UmmAlQuraUniversity,Makkah TableofContents – Objectives&Outline Objectives 1. Use basic problem-solving of selection. 2. Develop algorithms of loop. 3. Use the repetition statements in C. 4. Write a C program using repetition statements: while, for, do...while, andnestedloop. 5. Use the break and continue statements. Ummal-QuraUniversity Chapter5(Scientific) 1/26 TableofContents – Objectives&Outline Outline 1. Repetition structures in C 2. while statement 3. for statement 4. do..while statement 5. Nested loop statement 6. break and continue statement Ummal-QuraUniversity Chapter5(Scientific) 2/26 Repetition structures in C – Overview Introduction # Loopsareusedtoexecuteablockofcodeseveralnumberoftimes. # Aloopstatementallowsyoutospecifythatanactionistoberepeated while someconditionremainstrue. # Therearethreetypesofloops: for, while, and do..while. Each of them hastheir specific uses. Ummal-QuraUniversity Chapter5(Scientific) 3/26
no reviews yet
Please Login to review.