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

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

	for (x = -3.0; x <= 3.1; x += 0.2) {
		f = 1.0 / pow(2.0 * M_PI, 0.5) * exp(-(x * x / 2.0));
		y = f * 100.0;
		memset(buf, '*', y);
		buf[y] = '\0';
		printf("% 3.1f %.3f %s\n", x, f, buf);
	}
	return 0;
}
