#include "library.h" const int maxx = 600, maxy = 600; bool drawn = false; void tabulate(const double x, const double finalx) { if (x <= finalx) { print("When X is "); print(x); print(", Y is "); const double y = 300 + 200*sin(x/100) + 50*cos(x/20); print(y); new_line(); if (drawn) draw_to(x, maxy-y); else move_to(x, maxy-y); drawn = true; tabulate(x+1, finalx); } } void main() { make_window(maxx, maxy); set_pen_width(3); set_pen_color(color::blue); tabulate(0, maxx); }