Avishka Fernando scored 104, hitting eight fours and two sixes as Sri Lanka posted a formidable total on the board. @AFP

Avishka Fernando smashed his first one-day international century as Sri Lanka scored an imposing 338-6 in their World Cup clash against the West Indies on Monday, with both sides playing only for pride.

Neither team can qualify for the semi-finals of the tournament after disappointing campaigns in England and Wales but that did not appear to dampen Sri Lanka’s spirits as they attacked the West Indies bowlers with gusto.

Captain Dimuth Karunaratne (32) put on 93 for the first wicket with Kusal Perera to lay a solid base at Chester-le-Street in the northeast of England.

Perera was run out for 64 to leave Sri Lanka 104-2 in the 19th over but Fernando kept up the momentum, building useful partnerships with Kusal Mendis, Angelo Mathews and Lahiru Thirimanne.

FOLLOW LIVE BLOG | SCORECARD

The 21-year-old reached three figures off exactly 100 balls with eight fours and two sixes but was caught by Fabian Allen off the bowling of Sheldon Cottrell for 104. Thirimanne ended unbeaten, with 45 off 33 balls.

“I played hard and I am very happy to get a hundred in my first World Cup,” said Fernando.

“They had fast bowlers but the wicket was two-paced. I am very happy to do this at a young age, I got a lot of support from my team-mates.”

West Indies captain Jason Holder was the pick of the bowlers, returning figures of 2-59 off his 10 overs.

But, having chosen to field, the Caribbean side failed to keep a lid on the runs and face an uphill task if they are to record only their second victory of a miserable World Cup campaign.

Sri Lanka, the 1996 winners, shocked hosts England to breathe life into their campaign after a slow start but defeat by South Africa combined with other results mean they can no longer qualify for the last four from the 10-team group.