Topic: Graph Theory Problem / Level: beginner

Problem: Write a program to print the degree of each node in a tree.

Run the code to see the output here...