SHOW:
|
|
- or go back to the newest paste.
1 | // Carbonara.cpp : Defines the entry point for the console application. | |
2 | // | |
3 | ||
4 | #include "stdafx.h" | |
5 | #include <conio.h> | |
6 | ||
7 | int main() | |
8 | { | |
9 | char choice; | |
10 | int AntalPersoner=0, eggs=0, pancetta=0,pecorino=0, ketchup=0, honung=0; //ketchup and honung measured in dl | |
11 | - | int AntalPersoner=0, eggs=0, pancetta=0,pecorino=0, ketchup=0; //ketchup measured in dl |
11 | + | |
12 | scanf_s("%d", &AntalPersoner); | |
13 | printf("Do you want to have normal portion or DALO portion?\nPress N for Normal and D for DALO\n"); | |
14 | scanf_s(" %c", &choice); | |
15 | if (choice == 'n'|| choice=='N') { | |
16 | eggs = AntalPersoner; | |
17 | pancetta = 200 * AntalPersoner; | |
18 | pecorino = 100 * AntalPersoner; | |
19 | ketchup = 2 * AntalPersoner; | |
20 | honung = 1 * AntalPersoner; | |
21 | } | |
22 | else if (choice=='d'|| choice=='D') | |
23 | { | |
24 | eggs = 2*AntalPersoner; | |
25 | pancetta = 2*200 * AntalPersoner; | |
26 | pecorino = 2*100 * AntalPersoner; | |
27 | ketchup = 2*2 * AntalPersoner; | |
28 | honung = 1*2 * AntalPersoner; | |
29 | } | |
30 | printf("Beat %d eggs in a container, and add some black pepper, put the container away.\n",eggs); | |
31 | printf("Steak %dgr pancetta and put it to rest.\n",pancetta); | |
32 | - | printf("Put eggs and pancetta in the pasta container and mix it with %dgr pecorino.\n",pecorino); |
32 | + | |
33 | printf("Put eggs, honung and pancetta in the pasta container and mix it with %dgr pecorino.\n",pecorino); | |
34 | printf("Douse everything in an extra dosage of kethup.\n"); | |
35 | printf("Congratulation you have a great carbonara!"); | |
36 | _getch(); | |
37 | ||
38 | return 0; | |
39 | } |