y=cos(x)の座標を表示させようとしているんですけど、次のプログラムって何が変なんですか。
int main(){
double x, y, pai=3.14, cos;

for(y=1; y>=-1; y++){

for(x=1; x<=4*pai; x++){

if(y==cos(pai/x)){
putchar('*');
}

else{
putchar(' ');
}
putchar('\n');
}


}
return 0;
}