Click Here to go back to the homepage.

Pizza Crust Solution:


import java.util.Scanner;

public class Kattis {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    double r = sc.nextInt();
    double c = sc.nextInt();
    System.out.println((r - c) * (r - c) / (r * r) * 100);
  }
}