Learning C# 2005: Get Started with C# 2.0 and .NET Programming (2nd Edition)

7.11. Exercises

Exercise 7-1 .

Write a program with a Math class that has four methods : Add , Subtract , Multiply , and Divide , each of which takes two parameters. Call each method from Main( ) .

Exercise 7-2 .

Modify the program from Exercise 7-1 so that you do not have to create an instance of Math to call the four methods.

Категории