//Write a program in java to calculate the are a perimeter of a rectangle?
class troy
{
public void go(int l,int b)
{
int xl*l)+(b*b))^0.5;
System.out.println(x);
}
}
Error msg : bad opperand types for binary operator '^'
first type: Int sceond type: double
--- Update ---
Compiling in JDK latest 1.7.0_21 and Blue java 3.08
--- Update ---
Sorry Damn these java scripts. Auto smiley . Correction int x = ((l*l))+(b*b))^0.5