What is the syntax error in this?
Mostrar comentarios más antiguos
% 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 comentarios
Torsten
el 13 de Ag. de 2023
Walter Roberson
el 13 de Ag. de 2023
There are circumstances under which none of those answers are correct.
Respuesta aceptada
Más respuestas (1)
Jilesh Dilipbhai
el 26 de En. de 2023
0 votos
% 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 comentario
Walter Roberson
el 26 de En. de 2023
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
Categorías
Más información sobre Environmental Engineering en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!