Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- void main()
- {
- int nLiczba1;
- std::cout << "Podaj pierwsza liczbe: ";
- std::cin >> nLiczba1;
- if(nLiczba1 == 666){
- exit(1);
- }
- int nLiczba2;
- std::cout << "Podaj druga liczbe: ";
- std::cin >> nLiczba2;
- int nWynik = nLiczba1 + nLiczba2;
- std::cout << nLiczba1 << " + " << nLiczba2 << " = " << nWynik;
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement