What was the first computers purpose?

The first computer ENIAC, was used to calculate trajectories and develop ballistic tables for Military Gunners to use. Computer was built at the University of Pennsylvania