02_printf.c 376 B

12345678910111213141516171819
  1. #include <stdio.h>
  2. int main()
  3. {
  4. printf("Hello world\n");
  5. int Count;
  6. for (Count = -5; Count <= 5; Count++)
  7. printf("Count = %d\n", Count);
  8. printf("String 'hello', 'there' is '%s', '%s'\n", "hello", "there");
  9. printf("Character 'A' is '%c'\n", 65);
  10. printf("Character 'a' is '%c'\n", 'a');
  11. return 0;
  12. }
  13. // vim: set expandtab ts=4 sw=3 sts=3 tw=80 :