Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Carbonara.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <conio.h>
- int main()
- {
- char choice;
- int AntalPersoner=0, eggs=0, pancetta=0,pecorino=0, ketchup=0, honung=0; //ketchup and honung measured in dl
- printf("How many people is going to be there and eat?");
- scanf_s("%d", &AntalPersoner);
- printf("Do you want to have normal portion or DALO portion?\nPress N for Normal and D for DALO\n");
- scanf_s(" %c", &choice);
- if (choice == 'n'|| choice=='N') {
- eggs = AntalPersoner;
- pancetta = 200 * AntalPersoner;
- pecorino = 100 * AntalPersoner;
- ketchup = 2 * AntalPersoner;
- honung = 1 * AntalPersoner;
- }
- else if (choice=='d'|| choice=='D')
- {
- eggs = 2*AntalPersoner;
- pancetta = 2*200 * AntalPersoner;
- pecorino = 2*100 * AntalPersoner;
- ketchup = 2*2 * AntalPersoner;
- honung = 1*2 * AntalPersoner;
- }
- printf("Beat %d eggs in a container, and add some black pepper, put the container away.\n",eggs);
- printf("Steak %dgr pancetta and put it to rest.\n",pancetta);
- printf("Cook some pasta and dry it from water. Put the pasta in a container.\n");
- printf("Put eggs, honung and pancetta in the pasta container and mix it with %dgr pecorino.\n",pecorino);
- printf("Douse everything in an extra dosage of kethup.\n");
- printf("Congratulation you have a great carbonara!");
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement