Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<iostream>
- #include<conio.h>
- int prawda()
- {
- printf("Masakra jest fajny so much\n");
- printf("Podaj 1. liczbe: ");
- int liczba1;
- std::cin >> liczba1;
- printf("Podaj 2. liczbe: ");
- int liczba2;
- std::cin >> liczba2;
- printf("Co chcesz z tym zrobic?(dodaj, odejmij)\nWynik to (tak wiem nie wybrales opcji xd, ale jestem za leniwy) :\n");
- int wynik = liczba1 + liczba2;
- std::cout << wynik;
- return 0;
- }
- int falsz()
- {
- printf("Musk is so bad\n");
- printf("Daje Ci jeszcze jedną szanse na podanie dobrego pinu!\n");
- int Pin3;
- std::cin >> Pin3;
- if( Pin3 == 20 )
- prawda();
- else
- printf("ale jestes glupi -,-");
- return 0;
- }
- int main()
- {
- int Pin1;
- const int pin2 = 20;
- std::cout << "Podaj super tajny pin!: ";
- std::cin >> Pin1;
- if( Pin1 == pin2 )
- prawda();
- else
- falsz();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement