Week 1
This 1st week is all about new experience and knowledge, we learn how to make algorithm about Roman and Arabic number. Then, after we know about algorithm, we have to code in python. We must know value of each Roman's alphabet. So, basically
I equal to 1
V equal to 5
X equal to 10
L equal to 50
C equal to 100
And, when know about Roman number then we can convert from Arabic to Roman number or Roman to Arabic number.
For Roman number, when a front alphabet is higher than next to it, it's mean plus(e.g. XI equal to 10 + 1 = 11). And in contrast, when a front alphabet is lower than next to it, it's mean minus(e.g. IX equal to 10 - 1 = 9).
And when we encounter a complicate one, it's should look like this.
XXII equal to 22.
I equal to 1
V equal to 5
X equal to 10
L equal to 50
C equal to 100
And, when know about Roman number then we can convert from Arabic to Roman number or Roman to Arabic number.
For Roman number, when a front alphabet is higher than next to it, it's mean plus(e.g. XI equal to 10 + 1 = 11). And in contrast, when a front alphabet is lower than next to it, it's mean minus(e.g. IX equal to 10 - 1 = 9).
And when we encounter a complicate one, it's should look like this.
XXII equal to 22.
ความคิดเห็น
แสดงความคิดเห็น