

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A series of coding exercises designed to help readers prepare for chapter 9 of their programming course. The exercises cover various control structures, including for loops, while loops, and nested loops, as well as functions and conditional statements. Students are asked to write functions to determine month abbreviations and check if a given month number is valid, and to write expressions for the number of times certain loops execute. The document also includes an exercise to print the days of a month in a calendar format.
Typology: Study notes
1 / 2
This page cannot be seen from the preview
Don't miss anything!
for(j=0; j < 10; j++) X = X + 1;
while (Contra >= 1) { X = X + 1; Contra = Contra / 2; }
while ( Dontra <= 10) { Contra = 1; While (Contra <= 10 ){ X = X + 1; Contra = Contra * 2; } Dontra = Dontra + 2; }
for(j=0; j < 10; j++){ K = 1; WHILE (K <= j) { X = X + 1; K = K + 1; } } }