C# Basic Exercises
C# Basic Exercises
Given three numbers, write a method that adds two first ones and multiplies them
by a third one. Input will be gotten from users through Main method
Expected input and output
AddAndMultiply(2, 4, 5) → 30
Exercise 7: Divisible by 2 or 3
Given two integers, write a method that returns their multiplication if they are both
divisible by 2 or 3, otherwise returns their sum. Input will be gotten from users
through Main method.
Expected input and output
DivisibleBy2Or3(15, 30) → 450
DivisibleBy2Or3(2, 90) → 180
DivisibleBy2Or3(7, 12) → 19