title: C Source Code in Latex document
body: <p>Can anyone recommend me a good template to include C source code with line numbering
  in Latex? For example, taking the classical Hello world program, I would like to make it look as follows:</p>
  
  <pre><code>(1)   /* Hello World program */
  (2)
  (3)   #include&lt;stdio.h&gt;
  (4)
  (5)   main()
  (6)   {
  (7)    printf("Hello World");
  (8)   }
  </code></pre>
  
  <p>Typicall, I always used the verbatim environment, but I am wondering if there is a better and nicer way to do that.</p>
  
  <p>Thanks so much
  Richard</p>