Logo  

CS256 - Fundamentals of Structured Programming

Displaying exercises/e8/files/p1.c

#include <stdio.h>
#include <curses.h>

/**
 * Complete the main function below.  Make it print "Hello, world!" every other
 * line starting from the upper left corner and moving to the right 2 columns
 * for every new line, stop when you get to the bottom of the screen (LINES-1).
 * Print a "Press any key to exit" message at the bottom left corner and wait
 * for a keypress to quit the program.
 */
int main(void)
{
  initscr();
  // Put your code here:


  endwin();
  return 0;
}