Wap to input length and breadth of a rectangle and find its area and perimeter??????????
Answers
Answered by
2
import java.util.*;
class Menstruation
{
public static void main()
{
int l, b, a=0,p=0;
Scanner in=new Scanner(System. in) ;
System. out. println("Enter length and breadth") ;
l=in. nextInt() ;
b=in. nextInt() ;
a=l*b;
p=2*(l+b);
System.out.println(a);
System. out. println(l) ;
}
}
class Menstruation
{
public static void main()
{
int l, b, a=0,p=0;
Scanner in=new Scanner(System. in) ;
System. out. println("Enter length and breadth") ;
l=in. nextInt() ;
b=in. nextInt() ;
a=l*b;
p=2*(l+b);
System.out.println(a);
System. out. println(l) ;
}
}
pragya98765:
i want qbasics...
Similar questions