Home > other >  Python
Python

Time:09-27

Small white help , please have bosses can help ~ ~ ~ ~

CodePudding user response:

The
refer to the original poster weixin_46495400 response:
small white help , please have bosses can help ~ ~ ~ ~

The code is as follows:
 
M=int (input (' please enter the number M: '))
N=int (input (' please enter the number N: '))
Print (M + N, end=' ')) # summation, print () function of the end parameter after printing the separator, the default is a newline, here to space
Print (M * N, end=' ')) # product
Print (M * * N, end=' ')) # N power,
* * said power operationPrint (N, M % end=")), # o % said more than o

CodePudding user response:

M=int (input (' please enter the number M: '))
N=int (input (' please enter the number N: '))
Print (M + N, M * N, M * N, N, M % sep=' ')