1 2 3 4 5 6 7 8 9 10 11 12
clear //Initialisation f=50 //frequency in herts //Calculation t=(1*f**-1) //time period //Result printf("\n T = %d ms",t*10**3)