You really really need to find out about arrays and look at examples of much simpler 7-segment LED drivers out there!
You probably still have "if (temp = 69)" in your code by the sound of it.
At the very least you should (re)factor the code to avoid all the dumb repetition, something like this as a framework would be a start:
void loop ()
{
read () ;
int high_digit = temp / 10 ;
int low_digit = temp % 10 ;
switch (high_digit)
{
case 0: .... ; break ;
case 1: .... ; break ;
case 2: .... ; break ;
....
case 9: .... ; break ;
}
switch (low_digit)
{
case 0: .... ; break ;
case 1: .... ; break ;
case 2: .... ; break ;
....
case 9: .... ; break ;
}
delay (10) ; // allow time to pass to reduce LED flicker
}
But there's more to do to clean it up - and learn a lot in the process I think.