online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
numbers = [ 1, 2, 3, 4, 4, 4, 5, 6, 7, 8, 8, 9, 9, 0, 2, 9, 9 ] # Tworzymy pusty słownik (dictionary) do zliczania wystąpień każdej liczby. count_dict = {} # Liczymy wystąpienia każdej liczby w tablicy. for number in numbers: if number in count_dict: count_dict[number] += 1 else: count_dict[number] = 1 # Wypisujemy liczby, które wystąpiły więcej niż 2 razy. for number, count in count_dict.items(): if count > 2: print(f'Liczba {number} (powtórzeń: {count})')

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