Hello, World!

From Programming In C

Exercise 1.1

Type in, compile and run the Hello, world! program. See what happens if you remove the system("pause"); command.

Extend the program so that it prints out the "Hello, world!" message 10 times. Investigate the effect of removing the "\n" from the text string.


Next exercise

Return to the course summary

phy225: Course Details

general


compilers


2011-12 assessments


past exam papers

  • 2008-9 (http://physics-database.group.shef.ac.uk/exampapers/2008-09/PHY225%20LT.pdf)
  • 2009-10 (http://physics-database.group.shef.ac.uk/exampapers/2009-10/PHY225%20Exam%20Sem%201%202009-10.pdf)
  • 2010-11 (http://physics-database.group.shef.ac.uk/exampapers/2010-11/PHY225_10_11.pdf)