Nonstandard. Read FAQ!Code:void main()
Unsafe! Read scanf format specifiers better or consider using fgets.Code:scanf( "%s", romanchar );
Not necessary since you're initializing it to 0 in the loop anyway (though the compiler will probably remove it when compiling a release anyway).Code:counter = 0;
All these can be written as sum += (number);Code:sum = sum + 4;
Can be written as sum++.Code:sum = sum + 1;
Consider using proper indentation as well.
But code in itself, however, is not faulty. It compiles fine.