I am writing a code to ask the user a series of questions. Once they enter their time I want to calculate that amount of time into hours. How do I take the user input and put that into an equation?
n=input('Are you entering in milliseconds or seconds? Enter 1 for milliseconds or 2 for seconds. ');if n==1; disp('Enter time in ms: ');else n==2; disp('Enter time in sec: ');
Best Answer