Question: What will the following code display? ` ` ` temps = [ 7 9 , 6 6 , 6 3 , 6 8 , 7

What will the following code display?
```
temps=[79,66,63,68,72,65,68,66,70,70];
precip =[0,20,40,40,10,0,20,20,10,0,20,30];
for k=1:length(temps)
if temps (k)65
disp('Bring a jacket')
elseif temps(k)>75
disp('It''s warm outside')
else
disp('It''s nice outside')
end
if precip (k)>=30
disp('It may rain out there')
end
end
```
What will the following code display? ` ` ` temps

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!