1. 26.
    0
    @26 kodun da son halini atayım bi hatam varsa

    import java. util.Scanner;

    public class xxxx
    {
    public static void main(String[] args)
    {
    Scanner Scan = new Scanner(System.in);

    double MONEY;
    int TWOHUNDREDL, ONEHUNDREDL, FIFTYL, TWENTYL, TENL, FIVEL, ONEL, FIFTYK, TWENTYFIVEK, TENK, FIVEK, ONEK;

    System.out. print("Enter the amount : " );
    MONEY = Scan. nextFloat();

    TWOHUNDREDL = (int) (MONEY / 200);
    ONEHUNDREDL = (int) (MONEY % 200 / 100);
    FIFTYL = (int) (MONEY % 100 / 50);
    TWENTYL = (int) (MONEY % 50 / 20);
    TENL = (int) (MONEY % 50 % 20 / 10);
    FIVEL = (int) (MONEY % 10 / 5);
    ONEL = (int) (MONEY % 5);
    FIFTYK = (int) ((MONEY % 1 / 0.50));
    TWENTYFIVEK = (int) ((MONEY % 0.50 / 0.25));
    TENK = (int) ((MONEY % 0.25 / 0.10));
    FIVEK = (int) ((MONEY % 0.25 % 0.10 / 0.05));
    ONEK = (int) ((MONEY % 0.05 / 0.01));

    System.out. println(TWOHUNDREDL + " two hundred lira bill(s)" );
    System.out. println(ONEHUNDREDL + " one hundred lira bill(s)" );
    System.out. println(FIFTYL + " fifty lira bill(s)" );
    System.out. println(TWENTYL + " twenty lira bill(s)" );
    System.out. println(TENL + " ten lira bill(s)" );
    System.out. println(FIVEL + " five lira bill(s)" );
    System.out. println(ONEL + " one lira coin(s)" );
    System.out. println((int) FIFTYK + " fifty kurus coin(s)" );
    System.out. println((int) TWENTYFIVEK + " twenty five kurus coin(s)" );
    System.out. println((int) TENK + " ten kurus coin(s)" );
    System.out. println((int) FIVEK + " five kurus coin(s)" );
    System.out. println((int) ONEK + " one kurus coin(s)" );
    }
    }
    ···
   tümünü göster