Answer:
Both Reynolds and surface roughness
Step-by-step explanation:
For turbulent flow friction factor is a function of both Reynolds and surface roughness of the pipe.But on the other hand for laminar flow friction factor is a function of only Reynolds number.
Friction factor for turbulent flow:
1. For smooth pipe


2. For rough pipe

Where R/K is relative roughness
Friction factor for laminar flow:
