NEW YORK — NBC finished the Pyeongchang Olympics by averaging just under 20 million viewers with its prime time coverage on the network, NBCSN cable and live streaming. That represented a 7 percent decline from the Winter Olympics of 2014.

For NBC alone, the Nielsen company said the prime average was 17.8 million, or a 17 percent decline from Sochi. In 2014, NBC only offered prime-time coverage on the network, and did not have simultaneous programming on cable and online.

NBC says the viewership helped make the Olympics profitable. Viewership started out stronger than executives expected at the beginning of the Olympics and faded toward the end. The network says it also showed strong growth in late-night, as there was a lot of live competition then because of the time difference.