online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
def get_digit( number, digits ): ''' input: number output: decimal digits example: 123 -> [ '3','2','1' ] ''' if number < 10: digits.append( number ) return else: quotient, remainder = divmod( number, 10 ) digits.append( remainder ) get_digit( quotient, digits) # ------------------------------------------------------ result = [] # loop all number of 3 digits, from 100 to 999 for number in range(100,1000): digits = [] get_digit( number, digits ) # sum of digits = 10 # each digit is different if ( sum(digits) == 10 ) and ( len(set(digits)) == 3) : result.append( number ) print( "We have {} solution".format( len(result) ) ) print( result )

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