[Solved] This C program wont compile/run? [closed]


Try this code

#include <stdio.h>
#include <windows.h>
#include <math.h>
#define PI  3.141597
#define WAVELENGTH 70
#define PERIOD .1

int main()
{
    float i,s,x;
    i = 0;
    for (i=0;i<=PI;i+=PERIOD)
    {
        s = sin(i);
        for (x=0;x<s*WAVELENGTH;x++)
        {
            putchar('*');
        }
        putchar('\n');
    }
return 0;
}

1

solved This C program wont compile/run? [closed]