What is the syntax error in this?
显示 更早的评论
% This program calculates the amount of pasta to cook, given the number of people eating.
Author: Ettore Boyardee
numPeople = 2 // numPeople: Number of people that will be eating
totalOuncesPasta = numPeople * 3; % Calculate and print total ounces of pasta
Typical: 3 ounces per person %
3 个评论
Walter Roberson
2023-8-13
There are circumstances under which none of those answers are correct.
采纳的回答
更多回答(1 个)
Jilesh Dilipbhai
2023-1-26
0 个投票
% This program calculates the amount of pasta to cook, given the number of people eating.
% Author: Ettore Boyardee
numPeople = 2; % numPeople: Number of people that will be eating
totalOuncesPasta = numPeople * 3; % Calculate and print total ounces of pasta
% Typical: 3 ounces per person %
1 个评论
Walter Roberson
2023-1-26
How does this differ from the response from James https://www.mathworks.com/matlabcentral/answers/356869-what-is-the-syntax-error-in-this#answer_281724
类别
在 帮助中心 和 File Exchange 中查找有关 Environmental Engineering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!