US President Barack Obama tested a new high-powered prototype for his commander-in-chief’s arsenal – a high-powered marshmallow gun that sent a tasty missile screaming through the White House.

The Secret Service is going to be mad at me about this

Watched over by a brooding portrait of his hero Abraham Lincoln, the US President fired the launcher and marvelled at other inventions on display at a White House youth Science Fair.

Mr Obama gleefully examined a Skype on wheels robot that allows elderly people use the internet to talk to far away relatives and a unique sugar sachet that dissolves in a cup of coffee, to avoid creating garbage. But he could not resist the marshmallow launcher.

“The Secret Service is going to be mad at me about this,” Mr Obama said, before energetically pumping a compressor and shooting the marshmallow gun, invented by 14-year-old Joe Huddy.

Mr Obama watched open-mouthed as the candy shot across the room before crashing into the wall near the entrance to the Red Room, an elegant state parlour stuffed with rare 19th century French furniture.

All the fun of the science fair had a serious purpose. Mr Obama wanted to highlight the importance he places on innovation, science and education – which will be reflected in his budget to be unveiled next week.

The President says that Republican budget cuts would dry up the kind of government spending that is necessary to inspire a new generation of scientists and visionaries to build a competitive 21st century economy.

“The young people I met today... you guys, inspire me. It’s young people like you that make me so confident that America’s best days are still to come.

“When you work and study and excel at what you’re doing in maths and science, when you compete in something like this, you’re not just trying to win a prize today; you’re getting America in shape to win the future,” he said.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.