<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/* Area of the Earth */
public class Earth {
  public static void main(String[] args) {
    
    double r= 6378.1;  //radius in km
    double A= 4*Math.PI*r*r;
    System.out.printf("Surface area in km^2:  %.2f\n", A);
  }
}</pre></body></html>