
#                                 codingrooms.com assignments EXcercise 01


print('''
codingrooms.com assignments EXcercise 01

Write a program that adds the digits in a 2 digit number. e.g. if the input was 35, then the output should be 3 + 5 = 8

Warning. Do not change the code on lines 1-3. Your program should work for different inputs. e.g. any two-digit number.

Example Input
39
Example Output
3 + 9 = 12
12

''')

#                                    Write your code below this line 👇

#                                                   Solution
print('''

# 🚨 Don't change the code below 👇
two_digit_number = input("Type a two digit number: ")
# 🚨 Don't change the code above 👆

#Write your code below this line 👇
first_digit=two_digit_number[0]
second_digit=two_digit_number[1]
print(int(first_digit)+int(second_digit))




''')
# 🚨 Don't change the code below 👇
two_digit_number = input("Type a two digit number: ")
# 🚨 Don't change the code above 👆

####################################
#Write your code below this line 👇
first_digit=two_digit_number[0]
second_digit=two_digit_number[1]
print(int(first_digit)+int(second_digit))



#                                 codingrooms.com assignments EXcercise 01


print('''
codingrooms.com assignments EXcercise 01

Write a program that adds the digits in a 2 digit number. e.g. if the input was 35, then the output should be 3 + 5 = 8

Warning. Do not change the code on lines 1-3. Your program should work for different inputs. e.g. any two-digit number.

Example Input
39
Example Output
3 + 9 = 12
12

''')

#                                    Write your code below this line 👇

#                                                   Solution
print('''

# 🚨 Don't change the code below 👇
two_digit_number = input("Type a two digit number: ")
# 🚨 Don't change the code above 👆

#Write your code below this line 👇
first_digit=two_digit_number[0]
second_digit=two_digit_number[1]
print(int(first_digit)+int(second_digit))




''')
# 🚨 Don't change the code below 👇
two_digit_number = input("Type a two digit number: ")
# 🚨 Don't change the code above 👆

####################################
#Write your code below this line 👇
first_digit=two_digit_number[0]
second_digit=two_digit_number[1]
print(int(first_digit)+int(second_digit))


#                                 codingrooms.com assignments EXcercise 01 codingrooms.com assignments EXcercise 01  Write a program that adds the digits in a 2 digit number. e.g. if the input was 35, then the output should be 3 + 5 = 8  Warning. Do not change the code on lines 1-3. Your program should work for different inputs. e.g. any two-digit number.  Example Input 39 Example Output 3 + 9 = 12 12 #                                    Write your code below this line 👇 #                                                   Solution # 🚨 Don't change the code below 👇 two_digit_number = input("Type a two digit number: ") # 🚨 Don't change the code above 👆  #Write your code below this line 👇 first_digit=two_digit_number[0] second_digit=two_digit_number[1] print(int(first_digit)+int(second_digit)) # 🚨 Don't change the code below 👇 # 🚨 Don't change the code above 👆 #################################### #Write your code below this line 👇