
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
This assignment is for Computer Programming course. It was assigned by Prof. Anurag Negi at KIIT University. It includes: For, Program, Computer, Unified, Code, Ada95, Loop, While, Code, Implement, End
Typology: Exercises
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Hint : Compute the sum every time the user enters a number and the average outside the loop.
Count := 1; for I in 1 .. 10 loop if I MOD 2 = 0 then for J in 1 .. 10 loop Count:= Count + 2; end loop; else for J in 1 .. 5 loop Count := Count - 1; end loop; end if; end loop;
Figure 1. Code Fragment