Advertisement
Yaroslavovich

Untitled

Oct 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. package com.company;
  2. import java.util.Scanner;
  3.  
  4.  public class Main{
  5.  
  6.      public static void main(String []args) {
  7.          int  a, b, c;
  8.          Scanner in = new Scanner(System.in);
  9.          // типПеременной имяПеременой = new типПеременной();
  10.          a = in.nextInt();
  11.          b = in.nextInt();
  12.          c = in.nextInt();
  13.          System.out.println(Math.abs(a-b)-(b-c));
  14.      }
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement