![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/17781035_1583936999641_DEF.jpg)
Nicholas Repko
Followers: 0 Following: 0
Statistics
1 Question
0 Answers
RANK
249,462
of 292,683
REPUTATION
0
CONTRIBUTIONS
1 Question
0 Answers
ANSWER ACCEPTANCE
100.0%
VOTES RECEIVED
0
RANK
of 19,932
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 147,825
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Question
how do I convert this to a for loop
x = input('Enter a number between 1 and 100: '); i = 0; while x>0 x=x-i; i=i+1; end fprintf('The while loop ran f...
4 years ago | 2 answers | 0