01/12/2020 Convert Roman Number to Decimal | String Problem https://codedestine.com/convert-roman-number-to-decimal-string-problem/ 1/2 public class Main { public static void main(String[] args) { Main main = new Main(); int result = main.romanToInt("LVIII"); System.out.println(result); } /* Solution */ public int romanToInt(String s) { char[] array = s.toCharArray(); int sum = 0; for(int i=0; i
Correction de TD1 Algo II – SMI S3 – 2020/2021 USMBA FSDM Pr. Noureddine En-nahnahi