In C:Write a main function and the following functions to compute thestress and strain in a steel rod of diameter D (inches) and lengthL (inches) subject to the compression loads P of 10000 to1000000 pounds in increments of 100000 pounds. The modulus ofelasticity E for steel is 30 X 10 to the 6th power.A function to compute the stress from the formulasstress f = P/Awhere A = pie D to the second / 4.0A function to compute the strain from the formulaselongated or shortened length AL = fL/Estrain e = AL/L = f/EA function to output the stress and strain at different loads ofP