### Code to print sin, cos, tan and square wave is scilab software using subplot function

a=input(“Enter amplitude”); t=0:0.001:1; y=a*cos(2*%pi*10*t); subplot(4,1,1); plot(t,y);p=a*sin(2*%pi*10*t); subplot(4,1,2); plot(t,p); d=a*squarewave(2*%pi*10*t); subplot(4,1,3) plot(t,d); f=a*tan(2*%pi*10*t); subplot(4,1,4); plot(t,f); Click Here For More Information About Scilab