title: Draw shapes using C language without graphics library
body: <p>I have to make console program which will draw circle, line, parabola 
  I made it using graphics library but my teacher asked me to make it without any library.</p>
  
  <p>I have tried a lot  without any result, I don't know how to draw it without graphics library</p>
  
  <p>This is my code:</p>
  
  <pre><code>#include&lt;graphics.h&gt;
  
  draw_line(int a,int b){
      int y;int x=3;
      for(x=-2;x&lt;=2;x++)
      {
          y=a*x+b;
          moveto(x,y);
  
          printf("*");
      }
  }
  
  draw_circle(a,b,r){
      float newx;float newy;
      float angle;
      for(angle=0;angle&lt;=360;angle+=0.1)
      {
          newx=a+cos(radians)*r;
          newy=b+sin(radians)*r;
  
          moveto(newx,newy);
          printf("*");
      }
  }
  draw_parabola(int a,int b,int c)
  {
  
      float x; float y;
      for(x=0.0;x&lt;=2.0;x+=0.1){
  
         y = (float) pow((float) a*x,2)+(float) pow((float) b*x,2)+c;
         printf("%f",y);printf("\n");
         printf("%f",x);printf("\n");
  
      }
  }
  </code></pre>