Topic: Graph Theory Problem / Level: beginner

Problem: Write a program to find the number of trees in a forest.

Run the code to see the output here...