Logo  

CS256 - Fundamentals of Structured Programming

Displaying exercises/e2/solution/hello.c

#include <stdio.h>

/**
 * Read the week 3 lesson about character literals and string literals to
 * complete this program.
 */

int main(void)
{
  /**
   * Edit the string in printf so that it prints to the screen the text:
   * Hello, world!
   * followed by a newline character.
   */
  printf("Hello, world!\n");

  // Make the main function return a value of 0 (from the week 2 lesson)
  return 0;
}