#include <safe-c.h>

void main(void)
{
  rational_type x;
  string_type s;

  put_string("Welcome to TSTRTN\n\n");

  put_string("Enter number: ");
  get_string(s);

  put_string("Your string was: ");
  put_string(s);
  put_string("\n\n");

  x = string_to_rational(s);
  x = sqrt(x * 2);

  rational_to_string(s, x);
  put_string("My string is: ");
  put_string(s);
  put_string("\n\n");

  put_string("Bye Bye from TSTRTN!\n\n");
}
