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!