































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
































February 3, 3009^
Lecture 5^
February 3, 3009^
Lecture 5^
February 3, 3009^
Lecture 5^
from^ user^ input n=^ 10;^ %^ number
of^ data^ values for^ k=^ 1:n%^ read^ and^ process
input^ value num=^ input('Enter
a^ number:^ '); total=^ total^ + num; endave=^ total/n;^
%^ average^ of^ n numbers fprintf('Average
is^ %f\n',^ ave)
How many passesthrough the loop willbe completed?^ A:^0 B:^1 C:^9 D:^10 E:^11
February 3, 3009^
Lecture 5^
February 3, 3009^
Lecture 5^
February 3, 3009^
Lecture 5^
February 3, 3009^
Lecture 5^
February 3, 3009^
Lecture 5^
February 3, 3009^
Lecture 5^
February 3, 3009^
Lecture 5^
February 3, 3009^
Lecture 5^
February 3, 3009^
Lecture 5^
February 3, 3009^
Lecture 5^