// Calculate the time clc; th=30; th0=50; tc=120; t=-120*[log(1-(th/th0))]; printf("Time= %.2f s ",t)