I need help with this script

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

Antworten (1)

Jim Riggs
Jim Riggs am 4 Mär. 2020
Bearbeitet: Jim Riggs am 4 Mär. 2020

0 Stimmen

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

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 4 Mär. 2020

Bearbeitet:

am 4 Mär. 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by