how to create a pipe forks two processes?

Any body can help me with solving this task:
Write a simple program that creates a pipe forks two processes and then
sends data through the pipe. Use two standard programs such as (who)
and (wc).????