1 2 3 4 5 6 7
clc //Example 1,5 //Convert 2.6 hours into seconds t=2.6//hr //1 hr = 3600 s t1=2.6*3600//s printf("2.6 hours = %f seconds",t1);