clear //Initialisation t=0.02 //time period in seconds from diagram v1=7 //peak voltage from diagram //Calculation f=1*t**-1 //frequency in Hz v2=2*v1 // Peak to Peak Voltage //Result printf("\n Frequency = %d Hz\n",f) printf("\n Peak to Peak Voltage = %d V\n",v2)