Guest User

Quine

a guest
Apr 29th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.52 KB | None | 0 0
  1. module main;
  2.  
  3. import std.stdio;
  4.  
  5. string output = "module main;
  6.  
  7. import std.stdio;
  8.  
  9. string output = ;
  10.  
  11. void main(string[] args) {
  12.     // Prints output strings in console
  13.     writeln(output[0..49] ~ 34 ~ output ~ 34 ~ output[49..$]);
  14.  
  15.     // Lets the user press <Return> before program returns
  16.     stdin.readln();
  17. }
  18. ";
  19.  
  20. void main(string[] args) {
  21.     // Prints output strings in console
  22.     writeln(output[0..49] ~ 34 ~ output ~ 34 ~ output[49..$]);
  23.    
  24.     // Lets the user press <Return> before program returns
  25.     stdin.readln();
  26. }
Advertisement
Add Comment
Please, Sign In to add comment