aqui esta algo de codigo que estaba buscando... gracias a los amigos que me dieron una ayudadita... aqui les dejo el codigo...
#include<stdio.h>
#include<conio.h>
#include<string.h>
char *nroman (int valor, char *c1, char *c2, char *c3);
void main()
{
clrscr();
int numero= 1;
int result;
char roman[15] = "";
textcolor(2);
gotoxy(10,2);
cprintf("*------Programa de Transformacion de Octales a Romanos------*");
gotoxy(20,4);
cprintf("Escribe un numero: ");
cscanf("%d", &numero);
gotoxy(20,6);
cprintf ("El octal es: %o", numero);
while ((numero < 1) || (numero > 7637));
if ((numero <= 7637) && (numero >= 1000))
{
result = numero / 1000;
strcat (roman, nroman(result, "M", " ", " "));
numero -= (result * 1000);
}
if ((numero < 1000) && (numero >= 100))
{
result = numero / 100;
strcat (roman, nroman(result, "C", "D", "M"));
numero -= (result * 100);
}
if ((numero < 100) && (numero >= 10))
{
result = numero / 10;
strcat (roman, nroman(result, "X", "L", "C"));
numero -= (result * 10);
}
if ((numero < 10) && (numero >= 1))
{
strcat (roman, nroman(numero, "I", "V", "X"));
}
gotoxy(20,8);
cprintf ("El romano es: %s", roman);
getch();
}
char *nroman (int valor, char *c1, char *c2, char *c3)
{
int s;
char rRoman[15] = "";
if ((valor >= 1) && (valor <= 3))
{
for (s = 0; s < valor; s++)
strcat (rRoman, c1);
getch();
}
if ((valor >= 5) && (valor <=

)
{
strcat (rRoman, c2);
for (s = 0; s < (valor - 5); s++)
strcat (rRoman, c1);
getch();
}
if (valor == 4)
{
strcat (rRoman, c1);
strcat (rRoman, c2);
getch();
}
if (valor == 9)
{
strcat (rRoman, c1);
strcat (rRoman, c3);
getch();
}
return (rRoman);
}