I have class were I have method. now I want send two calculated values out from the method same time. how i can do that, that I can call method from main program? my program returns only first value now. Can i return somehow something like this: console.writeLine("first value" + x + "second value is:" + y? my method code:
public static double calculate(double r)
{
double x;
double y;
x = r * r;
y = r * r * r;
return x; // should i put something here or shuld i do somehow array?
}