title: How could I achieve gotoxy() in gcc
body: <p>I am using <strong>gcc</strong> in <strong>ubuntu</strong>.so, I compile and execute in <strong>terminal</strong>. But In a online programming contest, they require the output as shown in diagram.</p>
  
  <p><img src="https://i.stack.imgur.com/qvH9Y.png" alt="required output"></p>
  
  <p>For that, if I use <strong>TURBOC</strong> I can get it using <strong>conio.h</strong> using <strong>gotoxy()</strong> to get <strong>spiral format</strong> of output. <strong>But in Ubuntu , How could I achieve this?</strong></p>