by @stud. Tommaso Brentani Fork
 
id_88e5cf03_5077_417b_b84f_d86c7d349dfb Begin id_dbb6ec45_40ec_460b_a26b_e5ea926aa1a8 z id_88e5cf03_5077_417b_b84f_d86c7d349dfb:s->id_dbb6ec45_40ec_460b_a26b_e5ea926aa1a8:n id_56249339_e112_4e96_98cf_80709f3a937a "dammi n scatti attuali" id_dbb6ec45_40ec_460b_a26b_e5ea926aa1a8:s->id_56249339_e112_4e96_98cf_80709f3a937a:n id_d40f9d9a_0bc4_4845_b6b3_7dceb300c98b z id_56249339_e112_4e96_98cf_80709f3a937a:s->id_d40f9d9a_0bc4_4845_b6b3_7dceb300c98b:n id_dc68ae9e_e82f_44af_8ef7_231b11e4f062 x id_d40f9d9a_0bc4_4845_b6b3_7dceb300c98b:s->id_dc68ae9e_e82f_44af_8ef7_231b11e4f062:n id_3d60a40b_e408_42cd_9a3a_601132209def "dammi scatti precedenti" id_dc68ae9e_e82f_44af_8ef7_231b11e4f062:s->id_3d60a40b_e408_42cd_9a3a_601132209def:n id_dba3c122_c4a2_445d_b42a_e8d8112d199a x id_3d60a40b_e408_42cd_9a3a_601132209def:s->id_dba3c122_c4a2_445d_b42a_e8d8112d199a:n id_0704f6e2_478a_4721_8353_62ba3c21d6af y id_dba3c122_c4a2_445d_b42a_e8d8112d199a:s->id_0704f6e2_478a_4721_8353_62ba3c21d6af:n id_f267e61a_a26b_4eda_aabd_0c669c0f7f8f "dammi scatto individuale" id_0704f6e2_478a_4721_8353_62ba3c21d6af:s->id_f267e61a_a26b_4eda_aabd_0c669c0f7f8f:n id_7177e46b_a930_47ef_8db4_bc87805f8244 y id_f267e61a_a26b_4eda_aabd_0c669c0f7f8f:s->id_7177e46b_a930_47ef_8db4_bc87805f8244:n id_cbd40c7c_ad18_42bd_a033_08db93d69e13 f id_7177e46b_a930_47ef_8db4_bc87805f8244:s->id_cbd40c7c_ad18_42bd_a033_08db93d69e13:n id_b210cc22_4819_4d60_9c3c_4bfb584bf62c "dammi canone fisso" id_cbd40c7c_ad18_42bd_a033_08db93d69e13:s->id_b210cc22_4819_4d60_9c3c_4bfb584bf62c:n id_719da14f_d7a1_46f7_9eed_8ed652c54319 f id_b210cc22_4819_4d60_9c3c_4bfb584bf62c:s->id_719da14f_d7a1_46f7_9eed_8ed652c54319:n id_ec0c24e7_f61a_4ddc_9ee7_5d0b2d998b83 totsc id_719da14f_d7a1_46f7_9eed_8ed652c54319:s->id_ec0c24e7_f61a_4ddc_9ee7_5d0b2d998b83:n id_c741b586_3a40_499b_b53f_e42c690af359 totsc = z-x id_ec0c24e7_f61a_4ddc_9ee7_5d0b2d998b83:s->id_c741b586_3a40_499b_b53f_e42c690af359:n id_b1e18fab_ae51_47a5_9b82_44d6a18eb9ea "il tot scatti è " +totsc id_c741b586_3a40_499b_b53f_e42c690af359:s->id_b1e18fab_ae51_47a5_9b82_44d6a18eb9ea:n id_ff5fe9a6_3917_43c1_807a_b91653b41e90 totsc = totsc id_b1e18fab_ae51_47a5_9b82_44d6a18eb9ea:s->id_ff5fe9a6_3917_43c1_807a_b91653b41e90:n id_a82b70c0_7bcc_4f2a_b811_36baa6d67618 End id_ff5fe9a6_3917_43c1_807a_b91653b41e90:s->id_a82b70c0_7bcc_4f2a_b811_36baa6d67618:n
import java.util.*;

public class NewProgram {
  static Scanner scanner = new Scanner(System.in);

  public static void main(String args[]) {
    int z = 0;
    System.out.println("dammi n scatti attuali");
    z = scanner.nextInt();
    int x = 0;
    System.out.println("dammi scatti precedenti");
    x = scanner.nextInt();
    int y = 0;
    System.out.println("dammi scatto individuale");
    y = scanner.nextInt();
    int f = 0;
    System.out.println("dammi canone fisso");
    f = scanner.nextInt();
    int totsc = 0;
    totsc = z - x;
    System.out.println("il tot scatti è " + totsc);
    totsc = totsc;
  }
}