IA
import java.util.Scanner;
import java.io.*;
abstract class Anukrati
public abstract void Area_anukrati();
class Rectangle_AKT extends Anukrati
public void Area_anukrati()
int l,b;
Scanner s=new Scanner(System.in);
System.out.println("Enter the length and breadth of rectangle");
l=s.nextInt();
b=s.nextInt();
System.out.println("area="+ l*b);
class Circle_AKT extends Anukrati
public void Area_anukrati()
int r;
Scanner s=new Scanner(System.in);
System.out.println("Enter the radius of circle");
r=s.nextInt();
System.out.println("area="+ 3.14*r*r);
class Triangle_AKT extends Anukrati
public void Area_anukrati()
int ba,h;
Scanner s=new Scanner(System.in);
System.out.println("Enter the base and height of triangle");
ba=s.nextInt();
h=s.nextInt();
System.out.println("area="+ (ba*h)/2);
public class Main
public static void main (String[] args)
Rectangle_AKT s1= new Rectangle_AKT();
s1.Area_anukrati();
Circle_AKT s2= new Circle_AKT();
s2.Area_anukrati();
Triangle_AKT s3= new Triangle_AKT();
s3.Area_anukrati();