title: how to stop text color function under conio.h in C to align the output to right??is there any way to reset text attributes to normal in C
body: <pre><code>int main()
  {
      int i ;
      clrscr();
      for(i = 0; i &lt;= 6; i++) {
          if(i % 2 == 0) {
              **textcolor(2);**
              cprintf("%d\n", i);
          }
  
          if(i % 2 != 0) {
              **textcolor(3);**
              cprintf("%d\n", i);
          }
      }
      getch();
  }
  </code></pre>
  
  <p>OUTPUT:(all evens are in green and odds in blue)</p>
  
  <pre><code>0
  
   1
  
    2
  
     3
  
      4
  
        5
  
          6
  </code></pre>