Coding Challenge: VAT Calculation

Learn how to manipulate the input from the user.

Problem statement

Write a program that asks the user for a raw price. After that, it calculates the corresponding final price using a VAT rate of 20.620.6%.

Input

Prompt user to enter the raw price, let’s say user entered 12001200.

Enter Raw Price: 1200

Expected output

Calculate VAT for value given by the user and display the final price, which for the above case is

Final Price: 1447.2

Coding exercise

Get hands-on with 1200+ tech skills courses.