Home > database >  From the keyboard to receive two integers m and n, and output m! + n! The value of the.
From the keyboard to receive two integers m and n, and output m! + n! The value of the.

Time:12-14

Ask bosses

CodePudding user response:

Don't know what's your language; Looks like the Python
Def f (x) :
Result=1
For I in range (x) :
The result *=I
Return the result
M=int (input (' please enter an integer value m: '))
N=int (input (' please enter n integer value: '))
Print (' m! + n! Calculation results for '), f (m) + f (n))

CodePudding user response:

Is a Python
  • Related