online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
def get_grade(): """Prompt the user for a grade between 0 and 100.""" def report_grade_counts(a_count, b_count, c_count, d_count, f_count): """Print the number of students in each grade category.""" def calculate_average(total_sum, num_students): """Calculate and return the average grade.""" def main(): print("Welcome to the Student Grade Reporter!") # Repeat a main loop until the user is done # while True: # Initialize counters for grade categories # Get grades from the user # Update the total sum and number of students # Determine the highest and lowest grades # Increment the appropriate grade category counter # Calculate and display the average grade # Display highest and lowest grades # Display the number of students in each category # Ask if the user wants to repeat repeat = input("\nDo you want to enter another set of grades? (yes/no): ").lower() if repeat != 'yes': break print("Thank you for using the Grade Management System!") if __name__ == "__main__": main()

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