//This code is written by Souvik Ghosh
#include <stdio.h>
#include <math.h>
#define PI 3.1415926
void main()
{
int h, half_h, w, r, c;
int f, g;
float extent, x;
w = 34;
h = 43;
half_h = h / 2;
extent = 2 * PI;
for (r = 0; r <= h; r++)
{
x = -4 * PI;
g = (int)(half_h - r);
for (c = 0; c <= w - 1; c++)
{
f = (int)(half_h * sin(x));
if (f == g)
{
printf("*");
}
else
{
printf(" ");
}
x = x + extent / w;
}
printf("\n");
}
}