Computer Science, asked by pragya98765, 1 year ago

Wap to input length and breadth of a rectangle and find its area and perimeter??????????

Answers

Answered by UnknownDude
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) ;
}
}

pragya98765: i want qbasics...
pragya98765: try to write inC++ also..plz
Similar questions