Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class Main {
  3.  
  4. public static void main(String[] args) {
  5. Scanner sc = new Scanner(System.in);
  6.  
  7. int radius = sc.nextInt();
  8. int c = sc.nextInt();
  9.  
  10. int diameterAvHelaPizzan = (radius*2);
  11.  
  12. int kantenAvPizzan = (diameterAvHelaPizzan-c);
  13.  
  14. int resultat =(kantenAvPizzan/diameterAvHelaPizzan);
  15.  
  16. System.out.println(resultat*100);
  17.  
  18. sc.close();
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement