online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
import numpy as np data = [85, 92, 78, 85, 95, 88, 72, 85, 90, 80] # Dataset data_array = np.array(data) print("OUTPUT\n") print(f"Dataset: {data}\n") # Mean and Median mean_value = np.mean(data_array) median_value = np.median(data_array) # Mode using NumPy (works everywhere) values, counts = np.unique(data_array, return_counts=True) mode_value = values[np.argmax(counts)] print(f"1. Mean: {mean_value:.2f}") print(f"2. Median: {median_value:.2f}") print(f"3. Mode: {mode_value}") # Variance and Standard Deviation (sample) variance_value = np.var(data_array, ddof=1) std_dev_value = np.std(data_array, ddof=1) print(f"4. Variance: {variance_value:.2f}") print(f"5. Standard Deviation: {std_dev_value:.2f}")

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