I have this question :
• Read the distance in miles from the user.
• If the distance is within three miles (i.e. less than or equals to 3), the user should be informed that the delivery will be free;
• If the distance is over three miles but not over 12 miles, the user should be informed what the delivery charge is in pounds. To do this, you need first to calculate the extra distance. You should store the value in the variable which is already declared, then use this variable when you output the message.
• If the distance exceeds 12 miles, the user should be informed that the company’s maximum delivery distance is 12 miles.
I tried to solve it many times , but the code did'nt work