Given internal energy, rate, and time. Print the integer that represents the total energy at Nth second
def InternalE(initialE, R, T):
return R * T + initialE
initialE = int(input("Enter initial energy: "))
R = int(input("Input rate: "))
T = int(input("Input time: "))
print("The energy is: "+str(InternalE(initialE, R, T)))
Comments
Leave a comment