fork download
  1. # your code goes here
  2. print ('1つ目の数字を入力してください')
  3.  
  4. str1 = input ()
  5.  
  6. print ('2つ目の数字を入力してください')
  7.  
  8. str2 = input ()
  9.  
  10. num1 = int (str1)
  11.  
  12. num2 = int (str2)
  13.  
  14. if num1 == num2:
  15. print('入力された2つの整数は同じです。')
  16. else:
  17. printf('入力された2つの整数は異なります。')
  18.  
  19.  
  20.  
Success #stdin #stdout 0.01s 27712KB
stdin
100
100
stdout
1つ目の数字を入力してください
2つ目の数字を入力してください
入力された2つの整数は同じです。