//Given that L = 67*10^-2 //in cm Vs = 343 //in m/s //Sample Problem 18-6a printf("**Sample Problem 18-6a**\n") //Open Ends f = Vs/(2*L) printf("The frequency of sound in case of open end is %fHz\n", f) //Sample Problem 18-6b printf("\n**Sample Problem 18-6b**\n") //cloes end fo = Vs/(4*L) printf("The frequency of sound in case of open ends is %fHz", fo)