online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <string> #include <regex> #include <cstdlib> int main() { std::string input; std::regex number_regex ("[1-9][0-9]{2}"); std::cout << "Unesite troznamenkasti broj: "; std::cin >> input; if (std::regex_match (input, number_regex)) { int number = std::stoi (input); int digits_multiplied = 1; while (number != 0) { digits_multiplied *= (number % 10); number = number / 10; } std::cout << "Umnozak znamenki je " << digits_multiplied; return EXIT_SUCCESS; } else { std::cout << "Niste unijeli troznamenkasti broj!"; return EXIT_FAILURE; } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue