Write a program using int variables
to find the area and perimeter of a
rectangle of length 12cm and breadth 8cm.
Class 9 - Computer Applications - Ch 3
Answers
Answered by
26
Hey there!
Program using int variables to find the area and perimeter of a rectangle of length 12cm and breadth 8cm.
class Question
{ static void main()
{ int length=12,breadth=8,area,perimeter;
area=length*breadth;
perimeter=2*(length+breadth);
System.out.println("Area="+area);
System.out.println("Perimeter="+perimeter);
} }
Hope it helps YoU!
Answered by
4
hola mate
here is ur answer
hope this helps.
❤❤❤❤❤❤
Attachments:
Similar questions