Programming in D – Solutions

Variables

import std.stdio;

void main() {
    int amount = 20;
    double rate = 2.11;

    writeln("I have exchanged ", amount,
            " Euros at the rate of ", rate);
}