def print_multiplication_table( ) :
try :
# Take an integer input from the user
number = int ( input ( "Enter an integer: " ) )
# Print the multiplication table for the given number up to 10
print ( f"Multiplication table for {number}:" )
for i in range ( 1 , 11 ) :
result = number * i
print ( f"{number} x {i} = {result}" )
except ValueError :
print ( "Please enter a valid integer." )
# Call the function to execute the program
print_multiplication_table( )
ZGVmIHByaW50X211bHRpcGxpY2F0aW9uX3RhYmxlKCk6CiAgICB0cnk6CiAgICAgICAgIyBUYWtlIGFuIGludGVnZXIgaW5wdXQgZnJvbSB0aGUgdXNlcgogICAgICAgIG51bWJlciA9IGludChpbnB1dCgiRW50ZXIgYW4gaW50ZWdlcjogIikpCiAgICAgICAgCiAgICAgICAgIyBQcmludCB0aGUgbXVsdGlwbGljYXRpb24gdGFibGUgZm9yIHRoZSBnaXZlbiBudW1iZXIgdXAgdG8gMTAKICAgICAgICBwcmludChmIk11bHRpcGxpY2F0aW9uIHRhYmxlIGZvciB7bnVtYmVyfToiKQogICAgICAgIGZvciBpIGluIHJhbmdlKDEsIDExKToKICAgICAgICAgICAgcmVzdWx0ID0gbnVtYmVyICogaQogICAgICAgICAgICBwcmludChmIntudW1iZXJ9IHgge2l9ID0ge3Jlc3VsdH0iKQogICAgCiAgICBleGNlcHQgVmFsdWVFcnJvcjoKICAgICAgICBwcmludCgiUGxlYXNlIGVudGVyIGEgdmFsaWQgaW50ZWdlci4iKQoKIyBDYWxsIHRoZSBmdW5jdGlvbiB0byBleGVjdXRlIHRoZSBwcm9ncmFtCnByaW50X211bHRpcGxpY2F0aW9uX3RhYmxlKCk=