1 2 3 4 5 6 7
clc //initialisation of variables n= 15 //knots //CALCULATIONS Um= n/sqrt(36) //RESULTS printf (' speed = %.1f knots',Um)