clc //Initialization of variables dn1=4 //cm v1=300 //cm/s dn2=2.5 //cm //calculations v2=v1*dn1/dn2 //results printf("Velocity = %.1f m/s",v2/100)