I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
Dress sizes

A small fashion company is exporting clothes to America and Europe. However they have different dress sizes to the UK. European sizes are 26 bigger than UK and American sizes are 2 less.

You need to write a program which will do the following –

  • ask for the destination (America or Europe)
  • ask for the size (in UK sizes)
  • if the destination is America then subtract 2.
  • If the destination is Europe then add 26.
  • Display the result.

 

Comments are closed.

Information