Can some one fix this for me?

It has been a long time since I've used C and I'm having trouble with changing the text color and clear screen as you'll see...

Code:

#include<stdio.h>
#include<conio.h>
#include<math.h>
#define MAX 7
int main(void)
{
float m[MAX],f[MAX],t[MAX];
int i;
float max,min,avr;
for(i=0;i<MAX;i++)
{
scanf("%g%g",&m[i],&f[i]);
t[i]=0.3*m[i]+0.7*f[i];
}
max=min=avr=t[0];
for(i=1;i<MAX;i++)
{
avr=avr+t[i];
if(max<t[i])
(max=t[i]);
if(min>t[i])
(min=t[i]);
}
avr=avr/MAX;
//clrscr(); what is this??!!!!!!!
for(i=0;i<MAX;i++)
{
if(t[i]<10)
textcolor(12);
else if(t[i]>12);
textcolor(10);
else
textcolor(14);
cprintf("%-8.2lg%-b.2lg%-8.2lg\n\n", m[i],f[i],t[i]);
}
textcolor(15);
cprintf("\n\n\rMAX=%lg\n\r MIN=%lg\n\r AVR=%lg\n\r", max,min,avr);
return (0);
}