Skip to end of metadata
Go to start of metadata
 
pizza = 750;
studentrabatt = 0.20;
tips = 0.08;
totalt = pizza*(1-studentrabatt)*(1+tips);
fprintf('Det blir %.2f totalt for middagen\n',totalt);
perPerson = totalt/5;
fprintf('Det blir %.2f per person',perPerson);
 
  • No labels