Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Volume unit is cubic decimetre or litre and the temperature unit is degrees celsius.")
- volume_one = int(input("Enter the volume of existing water: "))
- temperature_one = int(input("Enter the temperature of existing water: "))
- volume_two = int(input("Enter the volume of added water: "))
- temperature_two = int(input("Enter the temperature of added water: "))
- mass_one = volume_one * 1000
- mass_two = volume_two * 1000
- T = (mass_one * temperature_one + mass_two * temperature_two) / (mass_one + mass_two)
- print(f"The temperature of mixed water is {T} degrees.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement