Advertisement
Guest User

D

a guest
Jul 12th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.20 KB | None | 0 0
  1. import std.stdio;
  2.  
  3. void main(char[][] args)
  4.     {ushort euro = 1;
  5.     byte a = 2;
  6.  
  7.     while(euro <= 16384)
  8.         {writeln(euro, " euro(s) = ", euro * 1.65, " dollar(s).");
  9.         euro = cast(ushort)(euro * a);}
  10.  
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement