my while loop is only running two times then it stops
Show older comments
E=input('Please enter pipe roughness (1.5e-6 and 5.0e-4):'); %check to see if within range while E<1.5e-6 E>5.0e-4 %if not within range display: disp('The number has to be between 1.5e-6 and 5.0e-4') %try again E=input('Please enter a pipe roughness between 1.5e-6 and 5.0e-4:') end
Accepted Answer
More Answers (1)
blake
on 2 Dec 2013
0 votes
1 Comment
Image Analyst
on 2 Dec 2013
It works fine. I just copied and pasted. It's not your copy of MATLAB. Tell me exactly what you typed in.
Categories
Find more on Code Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!