Code not working.Please send solution

there may be case when exact integral x is not possible, so your function doesn’t return anything. Edited code: