Skip to content

Commit a810063

Browse files
Update num_to_romanNum.c
1 parent f79eea5 commit a810063

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

num_to_romanNum.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/* M = 1000
32
CM = 900
43
D= 500
@@ -48,6 +47,10 @@ int main(void)
4847
printf("C");
4948
num-=100;
5049
}
50+
else if(num >= 90){
51+
printf("XC");
52+
num -= 90;
53+
}
5154
else if(num >= 50)
5255
{
5356
printf("L");

0 commit comments

Comments
 (0)