Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <cmath>
- int main()
- {
- std::string LBinarna;
- std::cout << "Podaj liczbe zapisana binarnie: \n";
- std::cin >> LBinarna;
- if (LBinarna == '0' or LBinarna [0] == '0')
- std::cout << "Blad, nie mozna konwertowac.\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment