#include <math.h>
#include <stdio.h>
#include <string.h>

int main()
{
	double	x, z, f;
	char	buf[50];
	int	y;

	memset(buf, '*', 50);
	for (x = -3.0; x <= 3.1; x += 0.2) {
		z = x / pow(M_PI, 0.5);
		f = 1.0 / 2.0 * (1.0 + erf(z));
		y = f * 50.0;
		printf("% 3.1f %5.3f %.*s\n", x, f, y, buf);
	}
	return 0;
}
