Quote (carteblanche @ Sep 24 2012 11:12pm)
function multiply(byval one as integer, byval two as integer)
multiply = one * two
end function
something like that?
Code
public int area(int length, in width){
return area * width; //or use System.out.println(area * width); if you want it to print it
}
Or if you want the user to input the variables themselves, put this in main
scanner sc = scanner.in();
int length= sc.nextInt();
int width = sc.nextInt();
area(length width);
Woops thought this was java, same type of thing just different syntax I assume.
This post was edited by lopelurag on Sep 24 2012 09:33pm