Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2011
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. incval[01]:=1000;
  2. incval[02]:=900;
  3. incval[03]:=500;
  4. incval[04]:=400;
  5. incval[05]:=100;
  6. incval[06]:=090;
  7. incval[07]:=050;
  8. incval[08]:=040;
  9. incval[09]:=010;
  10. incval[10]:=009;
  11. incval[11]:=005;
  12. incval[12]:=004;
  13. incval[13]:=001;
  14.  
  15. incs[01]:='M';
  16. incs[02]:='CM';
  17. incs[03]:='D';
  18. incs[04]:='CD';
  19. incs[05]:='C';
  20. incs[06]:='XC';
  21. incs[07]:='L';
  22. incs[08]:='XL';
  23. incs[09]:='X';
  24. incs[10]:='IX';
  25. incs[11]:='V';
  26. incs[12]:='IV';
  27. incs[13]:='I';
  28. res:='';
  29. for i:=1 to 13 do
  30. begin
  31. while decimal>=incval[i] do begin dec(decimal,incval[i]);res:=res+incs[i];end;
  32. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement