
import java.io.*; class y { public static void main (String args[]) { Data inputStream dis = new Data inputstream(System.in); float l,b,a; Systyem.out.println("enter the lengh"); l=float.parse float{dis.readLine()}; Systyem.out.println("enter the breath"); b=float.parse float(dis.readLine()); a=l*b; System.out.println("area of rect" +a); } }

import java.io.*;
class y {
public static void main (String args[])throws Exception {
DataInputStream dis = new DataInputStream(System.in);
float l,b,a;
System.out.println("enter the lengh");
l=Float.parseFloat(dis.readLine());
System.out.println("enter the breath");
b=Float.parseFloat(dis.readLine());
a=l*b;
System.out.println("area of rect: " +a);
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.