wap to print the area of circle ,squares,triangle rectangle ,pentagon trapizium
Answers
Answered by
2
double r =in.nextDouble();
double s=in.nextDouble();
double l=in.nextDouble();
double b=in.nextDouble();
double ac=(22/7)*r*r;
double as=s*s;
double ar=l*b;
System.out.println("ac");
System.out.println("as");
System.out.println("ar");
}
}
Similar questions