clc //initialisations j1=21*10^5//j j2=3.36*10^5//j //calculations x=j1*100/(j1+j2) //results printf(' percentage of water present will be frozen= % 1f',x)