#include <stdio.h>
#include <math.h>
int main() {
double x, y;
x=-1.5;
printf ("/n| x | y |/n| --- | --- |/n");
while (x<=1.5) {
if (x<-0.5) y = x + sqrt(abs(cos(x)));
if (x>=-0.5)&&(x<=1) y = x + 1;
if (x>1) y = 1 - pow(x, 2);
printf ("| %f | %f |/n", x, y);
x = x + 0.2;
}
}