If you have the flu you should not go to work.
When you have the flu you are contagious and can spread the flu virus to other people you are working with.
Also with the flu you likely are not feeling good enough to really concentrate on your work.
So you should call into work sick and stay home and get plenty of rest and then once you are feeling better you can go back to work.
I've tried going to work before when I had the flu and I was only there a few hours before I had to tell my boss that I was not feeling good.
He thanked me for trying to come to work but said that I should go home and rest.
Most people recover from the flu within 7 to 14 days