java program to find the area of rectangle using ( length=5 cm) ( breadth = 5cms) area = L× B
Answers
Answered by
0
/*
Project Type: Brainly Answer
Date Created: 20-02-2021
Date Edited Last Time: ---NIL---
Question Link: java program to find the area of rectangle
using ( length=5 cm) ( breadth = 5cm) area = L × B
Program Created By: atrs7391
Programming Language: Java
Language version (When program created or last edited): jdk-15.0.2
*/
package Brainly_Answers.Program;
public class Area {
public static void main(String[] args) {
int length = 5;
//storing value of length
int breadth = 5;
//storing value of breadth
int area = length*breadth;
//calculating area
System.out.println("Area = "+area+" cm2");
//printing area
}
}
Similar questions