The following assignment statements either contain at least one error, or could be improved in some way. Assume that radius is a variable that has been initialized. First, identify the problem, and then fix and/or improve them:
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:1| Question number:10.1
All Answers
total answers (1)
33 = number The variable is always on the left number = 33 my variable = 11.11; Spaces are not allowed in variable names my_variable = 11.11; area = 3.14 * radius^2; Using pi is more accurate than 3.14 area = pi * radius^2; x = 2 * 3.14 * radius; x is not a descriptive variable name circumference = 2 * pi * radius;
need an explanation for this answer? contact us directly to get an explanation for this answer