1 2 3 4 5 6 7 8 9 10 11 12 13
//Chapter 1, Example 1.9 clc //Initialisation f=50 //Frequency in Hertz //Calculation t=1/f //Time Period in Sec //Results printf("Time Period, T = %d ms",(t*1000))