Skip to content

Instantly share code, notes, and snippets.

@jerstlouis
Created May 11, 2014 05:01
Show Gist options
  • Save jerstlouis/53cc37d356e83eaaeb40 to your computer and use it in GitHub Desktop.
Save jerstlouis/53cc37d356e83eaaeb40 to your computer and use it in GitHub Desktop.
import "ecere"
class TriApp : Application
{
ConsoleFile f { };
void Main()
{
int w = 50;
int h = 20;
int x, y;
for(y = 0; y < h; y++)
{
int l = (int)sqrt((w * w + h * h) * (y * y) / (h * h) - (y * y));
for(x = 0; x <= l; x++)
f.Putc('*');
f.Putc('\n');
}
system("pause");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment