MATLAB Answers

I need help with this script

1 view (last 30 days)
Liam Sullivan
Liam Sullivan on 4 Mar 2020
Edited: Jim Riggs on 4 Mar 2020
I'm strying to run a script but keep getting an error message.
T = input('Enter your temperature')
if T<=96
disp('You are either hypothermic or a zombie')
elseif
96<T<99
disp('Your temperature is normal')
elseif
99<=T<=102
disp('You are running a fever')
else
T>102
disp('Go to the emergency room now!')
end

  0 Comments

Sign in to comment.

Answers (1)

Jim Riggs
Jim Riggs on 4 Mar 2020
Edited: Jim Riggs on 4 Mar 2020
Try this:
T = input('Enter your temperature')
if T<=96
disp('You are either hypothermic or a zombie')
elseif T<99
disp('Your temperature is normal')
elseif T<=102
disp('You are running a fever')
else
disp('Go to the emergency room now!')
end

  0 Comments

Sign in to comment.


Translated by