Output string to console : Console Output String « Console « C / ANSI-C






Output string to console

  
#include <stdio.h>

int main(void)
{
  puts("one");
  puts("two");
  puts("three");

  return 0;
}


           
       








Related examples in the same category

1.Displaying a string
2.Displaying a Quotation: the main function
3.prints Hello on standard output
4.Print the string in the reverse order
5.Read and output string
6.A simple example for printf
7. Output a string to stdout: how to use puts