by @stud. Filippo Morelli Fork
 
id_31400419_69a9_4d95_84d4_5e053ea5f6a8 Begin id_74e049b9_08d4_4f80_8182_a2ac59b272ac capo id_31400419_69a9_4d95_84d4_5e053ea5f6a8:s->id_74e049b9_08d4_4f80_8182_a2ac59b272ac:n id_3bcc6065_1c7f_4cf7_a61a_49ca49a72d62 qnt id_74e049b9_08d4_4f80_8182_a2ac59b272ac:s->id_3bcc6065_1c7f_4cf7_a61a_49ca49a72d62:n id_2ac7b402_81dd_4401_ab81_fd7c99950aa5 przuni id_3bcc6065_1c7f_4cf7_a61a_49ca49a72d62:s->id_2ac7b402_81dd_4401_ab81_fd7c99950aa5:n id_ac154bb5_9247_4ed8_8bd3_cd8dc81bfe98 tot id_2ac7b402_81dd_4401_ab81_fd7c99950aa5:s->id_ac154bb5_9247_4ed8_8bd3_cd8dc81bfe98:n id_e20a4596_d1bb_411a_95ed_0293b49bc8e6 soldi = 100.00 id_ac154bb5_9247_4ed8_8bd3_cd8dc81bfe98:s->id_e20a4596_d1bb_411a_95ed_0293b49bc8e6:n id_7987ff76_6843_4a9f_8b3c_12be81b547d3 soldirest id_e20a4596_d1bb_411a_95ed_0293b49bc8e6:s->id_7987ff76_6843_4a9f_8b3c_12be81b547d3:n id_974c5983_a569_4e32_af45_64efdbf6b2be "cosa vuoi comprare?" id_7987ff76_6843_4a9f_8b3c_12be81b547d3:s->id_974c5983_a569_4e32_af45_64efdbf6b2be:n id_734f8fed_c52e_4bd5_b88f_04eccc5fc376 capo id_974c5983_a569_4e32_af45_64efdbf6b2be:s->id_734f8fed_c52e_4bd5_b88f_04eccc5fc376:n id_f98dbb56_6cb2_48e8_b301_6f0573930217 "quanto costa un capo" id_734f8fed_c52e_4bd5_b88f_04eccc5fc376:s->id_f98dbb56_6cb2_48e8_b301_6f0573930217:n id_40b648c5_123a_45ea_9da8_bf69f9a9d6ee przuni id_f98dbb56_6cb2_48e8_b301_6f0573930217:s->id_40b648c5_123a_45ea_9da8_bf69f9a9d6ee:n id_acf4cc3c_ab7e_497a_b19c_31ec7da878a0 "quanti ne vuoi acquistare?" id_40b648c5_123a_45ea_9da8_bf69f9a9d6ee:s->id_acf4cc3c_ab7e_497a_b19c_31ec7da878a0:n id_4edd69c0_40df_4f49_a88e_bff8cb0f7bff qnt id_acf4cc3c_ab7e_497a_b19c_31ec7da878a0:s->id_4edd69c0_40df_4f49_a88e_bff8cb0f7bff:n id_3ab5df30_09b0_407e_88d8_e821b466525c tot = qnt*przuni id_4edd69c0_40df_4f49_a88e_bff8cb0f7bff:s->id_3ab5df30_09b0_407e_88d8_e821b466525c:n id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df tot>100 id_3ab5df30_09b0_407e_88d8_e821b466525c:s->id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df:n true_dummy_up_id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df:e->true_dummy_up_id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df true false_dummy_up_id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df:w->false_dummy_up_id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df false id_b5d1933d_21e1_44fb_a399_7be53105b384 "non lo puoi comprare" true_dummy_up_id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df->id_b5d1933d_21e1_44fb_a399_7be53105b384:n id_447666b1_adf7_4b45_bb6c_5e93eb3f4f8f "lo puoi comprare" false_dummy_up_id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df->id_447666b1_adf7_4b45_bb6c_5e93eb3f4f8f:n true_dummy_down_id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df id_b5d1933d_21e1_44fb_a399_7be53105b384:s->true_dummy_down_id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df:n id_8bf1a2a3_eff7_4c11_817a_4789869cfc3d soldirest = 100-tot id_447666b1_adf7_4b45_bb6c_5e93eb3f4f8f:s->id_8bf1a2a3_eff7_4c11_817a_4789869cfc3d:n id_f2b03707_503b_47ee_bd49_e3e0a554316d "i soldi restanti sono " + soldirest id_8bf1a2a3_eff7_4c11_817a_4789869cfc3d:s->id_f2b03707_503b_47ee_bd49_e3e0a554316d:n false_dummy_down_id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df id_f2b03707_503b_47ee_bd49_e3e0a554316d:s->false_dummy_down_id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df:n end_id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df true_dummy_down_id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df->end_id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df false_dummy_down_id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df->end_id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df id_97fc0390_4929_4fa9_9ea2_b1cb6fb178c3 End end_id_2c0fa3e5_b9ba_463b_824e_0daa1ceb56df:s->id_97fc0390_4929_4fa9_9ea2_b1cb6fb178c3:n
import java.util.*;

public class MorellliF.ES.1 {
  static Scanner scanner = new Scanner(System.in);

  public static void main(String args[]) {
    String capo = "";
    int qnt = 0;
    double przuni = 0;
    double tot = 0;
    double soldi = 100;
    double soldirest = 0;
    System.out.println("cosa vuoi comprare?");
    capo = scanner.nextLine();
    System.out.println("quanto costa un capo");
    przuni = scanner.nextDouble();
    System.out.println("quanti ne vuoi acquistare?");
    qnt = scanner.nextInt();
    tot = qnt * przuni;
    if (tot > 100) {
      System.out.println("non lo puoi comprare");
    } else {
      System.out.println("lo puoi comprare");
      soldirest = 100 - tot;
      System.out.println("i soldi restanti sono " + soldirest);
    }
  }
}