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!