/* 

  AREA0.C : A C program for calculating areas of
            various shapes.

  Barry McMullin
  25th January 1996.

*/

#include <safe-c.h>


void main(void)
{
  string_type shape;

  put_string("Welcome to AREA0.\n");

  put_string("Please enter one of the following shapes:\n");
  put_string("  Triangle\n");
  put_string("  Square\n");
  put_string("  Rectangle\n");
  put_string("  Circle\n\n");

  put_string("Shape: ");
  get_string(shape);

  if (string_equal(shape, "Triangle\n"))
    do_triangle();
  else
    if (string_equal(shape, "Square\n"))
      do_square(); 
    else
      if (string_equal(shape, "Rectangle\n"))
        do_rectangle();
      else
        do_circle();

  put_string("\n\nBye from AREA0!\n");
}
