Skip to content

Commit

Permalink
added coffe in matlab (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
pankace authored Jul 4, 2022
1 parent 1e43a05 commit 882440b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions MATLAB/pankace.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
% take input coffee convert to code
% and store in a variable
coffee = input('Enter the coffee you want to order: ','s');
if strcmp(coffee,'Cappuccino')
coffee = 'Cappuccino';
fprintf('JavaScript: %s\n', coffee);
elseif strcmp(coffee,'Latte')
coffee = 'Latte';
fprintf('Typescript: %s\n', coffee);
elseif strcmp(coffee,'Espresso')
coffee = 'Espresso';
fprintf('Java: %s\n', coffee);
elseif strcmp(coffee,'Coffee')
coffee = 'Coffee';
fprintf('Code!: %s\n', coffee);
else
fprintf('Invalid coffee selection\n');
end

0 comments on commit 882440b

Please sign in to comment.