clc clear //input data f=120 //lowest frequency //calculation x=3*f // the next higher frequency is thrice the lowest frequency //output printf("the next higher frequency where the antinode is formed is at %3.3f Hz",x)