Another way to say "playing tennis is for fun and exercise." is "To exercise and have fun, try playing tennis."