해피랭이라고 대충 하나 만든 다음에 간단한 문제풀이 시켜봤더니 되네 ㄷㄷ


I will teach you a coding language. name is 'happylang' 1. codes start and end must be 'I`m happy!' 2. to make variable, you can write '.' for first(dot) and '..' for next. like this 3. middle of variable and information of variable must be '=' 4. to print something, start must be '^^/' and close with '/' 5. when you are using print work, to check printing information is variable or not, if it`s not variable, write '(:' at start, write ':)' at last,   6. other calculateing simbles are same 



이거치고


you are right about other tings in happylang, but when you are using variable, first variable name is '.'

second is '..' like this, dot is changing


이거치고


ok, there is a store, and this store sells a, b, c, and price is a=10, b=20, c=30, this store sell 2a, 4b, 3c, show me code that how much this store earn


이렇게 치면


I`m happy!


. a = 10  # Price of 'a'

. b = 20  # Price of 'b'

. c = 30  # Price of 'c'


.. sold_a = 2  # Quantity of 'a' sold

... sold_b = 4  # Quantity of 'b' sold

.... sold_c = 3  # Quantity of 'c' sold


. earnings_a = sold_a * a  # Total earnings from 'a'

. earnings_b = sold_b * b  # Total earnings from 'b'

. earnings_c = sold_c * c  # Total earnings from 'c'


. total_earnings = earnings_a + earnings_b + earnings_c  # Total earnings from all items


^^/Total Earnings: (:total_earnings:)/  # This will print the total earnings of the store #


이렇게 뜨더라