write a program to calculate the area and perimeter of rectangle having length 12cm and breadth 10 cm.
{Are=length*breadth,perimeter=2*(length*breadth)}
eshvi:
plz specify in java or any other language....?
Answers
Answered by
1
double length,breadth,area,perimeter;
length=Double.parseDouble(jTextField1.getText());
breadth=Double.parseDouble(jTextField2.getText());
area=length*breadth;
perimeter=2*(length+breadth);
jTextField3.setText(area));
jTextField4.setText(perimeter));
length=Double.parseDouble(jTextField1.getText());
breadth=Double.parseDouble(jTextField2.getText());
area=length*breadth;
perimeter=2*(length+breadth);
jTextField3.setText(area));
jTextField4.setText(perimeter));
Similar questions