#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define SWIDTH 100
#define SHEIGHT 50
#define PLOTCHAR '*'
int f(x) {
int p = (25 - x) / 3;
int yd = 25;
return p * p + yd;
}
int f2(x) {
float p = (x - SWIDTH / 2.0) / SWIDTH * 3.0 * 3.14159;
int yd = 25;
}
void printscale_x() {
int x;
for(x = 0; x < SWIDTH; ++x) {
if (x % 10 == 0)
else
}
for(x = 0; x < SWIDTH; ++x) {
}
}
main()
{
char scrn[SWIDTH][SHEIGHT];
int x, y;
for(x = 0; x < SWIDTH; ++x) {
for (y = 0; y < SHEIGHT; ++y) {
scrn[x][y] = ' ';
}
}
for (x=0; x < SWIDTH; ++x) {
/*printf("%d\n", f2(x));*/
if (f2(x) < SHEIGHT) {
scrn[x][f2(x)] = PLOTCHAR;
}
else {
scrn[x][SHEIGHT - 1] = '+';
}
}
printscale_x();
for(y = SHEIGHT - 1; y >= 0; --y) {
for (x = 0; x < SWIDTH; ++x) {
}
}
printscale_x();
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPG1hdGguaD4KCiNkZWZpbmUgU1dJRFRIIDEwMAojZGVmaW5lIFNIRUlHSFQgNTAKI2RlZmluZSBQTE9UQ0hBUiAnKicKCmludCBmKHgpIHsKICBpbnQgcCA9ICgyNSAtIHgpIC8gMzsKICBpbnQgeWQgPSAyNTsKICByZXR1cm4gcCAqIHAgKyB5ZDsKfQoKaW50IGYyKHgpIHsKICBmbG9hdCBwID0gKHggLSBTV0lEVEggLyAyLjApIC8gU1dJRFRIICogMy4wICogMy4xNDE1OTsKICBpbnQgeWQgPSAyNTsKICByZXR1cm4gKGludCkgKGZsb29yKHNpbihwKSAqIDIwKSArIHlkKTsKfQoKdm9pZCBwcmludHNjYWxlX3goKSB7CiAgaW50IHg7CgogIHByaW50ZigiICAgIik7CiAgZm9yKHggPSAwOyB4IDwgU1dJRFRIOyArK3gpIHsKICAgIGlmICh4ICUgMTAgPT0gMCkKICAgICAgcHJpbnRmKCIlZCIsIHggLyAxMCk7CiAgICBlbHNlCiAgICAgIHByaW50ZigiICIpOwogIH0KICBwcmludGYoIlxuIik7CgogIHByaW50ZigiICAgIik7CiAgZm9yKHggPSAwOyB4IDwgU1dJRFRIOyArK3gpIHsKICAgIHByaW50ZigiJWQiLCB4JTEwKTsKICB9CiAgcHJpbnRmKCJcbiIpOwp9CgptYWluKCkKewogIGNoYXIgc2NybltTV0lEVEhdW1NIRUlHSFRdOwogIGludCB4LCB5OwoKICBmb3IoeCA9IDA7IHggPCBTV0lEVEg7ICsreCkgewogICAgZm9yICh5ID0gMDsgeSA8IFNIRUlHSFQ7ICsreSkgewogICAgICBzY3JuW3hdW3ldID0gJyAnOwogICAgfQogIH0KCiAgZm9yICh4PTA7IHggPCBTV0lEVEg7ICsreCkgewogICAgLypwcmludGYoIiVkXG4iLCBmMih4KSk7Ki8KICAgIGlmIChmMih4KSA8IFNIRUlHSFQpIHsKICAgICAgc2Nyblt4XVtmMih4KV0gPSBQTE9UQ0hBUjsKICAgIH0KICAgIGVsc2UgewogICAgICBzY3JuW3hdW1NIRUlHSFQgLSAxXSA9ICcrJzsKICAgIH0KICB9CgogIHByaW50c2NhbGVfeCgpOwoKICBmb3IoeSA9IFNIRUlHSFQgLSAxOyB5ID49IDA7IC0teSkgewoKICAgIHByaW50ZigiJTAyZCAiLCB5KTsKICAgIGZvciAoeCA9IDA7IHggPCBTV0lEVEg7ICsreCkgewogICAgICBwcmludGYoIiVjIiwgc2Nyblt4XVt5XSk7CiAgICB9CiAgICBwcmludGYoIlxuIik7CiAgfQoKICBwcmludHNjYWxlX3goKTsKCiAgcmV0dXJuIDA7Cn0K