Community Profile

photo

Nicholas Repko


Last seen: plus de 2 ans ago Active since 2020

Statistics

  • Thankful Level 1

View badges

Content Feed

View by

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...

plus de 2 ans ago | 2 answers | 0

2

answers