copy and paste
so you can keep the data in the current cell and add it to other cells that you want that data in as well
Answer:
The equivalent if statements is:
ranforce = randi([0, 12]);
if (ranforce == 0)
disp('There is no wind')
else if(ranforce>0 && ranforce <7)
disp('There is a breeze')
else if(ranforce>6 && ranforce <10)
disp('This is a gale')
else if(ranforce>9 && ranforce <12)
disp('It is a storm')
else if(ranforce==12)
disp('Hello, Hurricane!')
end
Explanation:
<em>The solution is straight forward.</em>
<em>All you need to do is to replace the case statements with corresponding if or else if statements as shown in the answer section</em>
Yes the ansewer is c bc you can look it up!