using a while-end loop

Use a while-end loop to find the base-5 place value larger than the base-10 number 4,219.
Use a while-end loop to find the first base-10 place value larger than the base-5 number 14,241.

4 Comments

Base - 5 & 10 values example?
Liliana Rios
Liliana Rios on 17 Oct 2018
Edited: Liliana Rios on 17 Oct 2018
Use a while-end loop to display the first 6 place values for base 5.
i=1;limit=6;while i<=limit;p=5^(i-1);display(p);i=i+1;end
the answer; p= 1 p=5 p=25 p=125 p=625 p= 3125
that's the only example that was given for the 2 questions that I have to answer

Sign in to comment.

Answers (0)

Categories

Asked:

on 16 Oct 2018

Commented:

on 21 Oct 2018

Community Treasure Hunt

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

Start Hunting!