Write an algorithm and flowchart to calculate the sum of two numbers.
This problem can be solved using the basic input → process → output approach.