Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Exercise1
- {
- public static double test(double a, double b) {
- double computeSqaures;
- double computeProduct;
- double answer;
- computeSqaures = Math.Pow(a,2) + Math.Pow(b,2); // computing power using POW function
- computeProduct = 2*a*b; // computing product 2*a*b
- answer = computeProduct + computeSqaures;
- return answer;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement