Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Exercise1
- {
- public static string computeCubes( int num1, int num2, int num3)
- {
- num1 = num1 * num1 * num1;
- num2 = num2 * num2 * num2;
- num3 = num3 * num3 * num3;
- string ans = (num1.ToString()) + " " +(num2.ToString()) + " " + (num3.ToString());
- return ans;
- }
- public static string test(int num1, int num2, int num3){
- string ans="";
- //call computeCubes function here
- ans=computeCubes(num1,num2,num3);
- return ans;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement