fork download
  1. import std.stdio;
  2.  
  3. int main () {
  4. immutable inches_per_feet = 12;
  5. immutable cm_per_inch = 2.54;
  6.  
  7. foreach (feet; 5..7) {
  8. foreach (inches; 0..12) {
  9. cms = (inches + inches_per_feet * feet) * cm_per_inch;
  10. writeln (feet, ''', inches, "''\t", cms, " cm");
  11. }
  12. }
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.d(10): unterminated character constant
prog.d(10): unterminated character constant
prog.d(10): found '44U' when expecting ','
stdout
Standard output is empty