MATLAB Answers

I think my answer is not correct for this question, anyone can help me to check it? Thanks

2 views (last 30 days)
Attached file is the question. Here is my code
B = 10000;
m = 0;
P = input('monthly payment?')
while B>0
B=B*(1.005);
B=B-P
m=m+1
end

Accepted Answer

Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh on 27 Jun 2015
Hi,
It matches with your flowchart, Why do you thing it is not correct?
  4 Comments

Sign in to comment.

More Answers (2)


Alvin Martinez
Alvin Martinez on 29 Mar 2021
Meal and all answers are concluded for the way out for the field. Work of the hard and grademiners review is ensured for the changes. Contact is fit for the mid of the final report for the true way for the citizens.

Tags

Community Treasure Hunt

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

Start Hunting!