java program of 'to find the area and perimeter of rectangle by using the assignment operator
Answers
Answered by
0
Answer:
Find the area, perimeter of a rectangle by using the assignment operator java programming.
Explanation:
public class Main
{
public static void main(String args[])
{
int 1, b, k, p;
double d;
1=24;b=10;
k=1*b;
p=2*(1+b);
d=Math.sqrt(1*1+b*b);
System.out.println("The area of rectangle="+k);
System.out.println("The perimeter of rectangle="+p);
}
}
Similar questions
Math,
1 month ago
Chemistry,
1 month ago
English,
1 month ago
Math,
9 months ago
Political Science,
9 months ago