Code:#include <iostream> #include <math.h> #include "myconsole.h" using namespace std; int main () { int x,i; float y; ClearScreen (); x=0; y=30; PlaceCursor (x,y); for (i=0;i<=40;i++) { y = sin(x); y=y-(10); PlaceCursor(x,y); cout <<"."; x=x+10; } }