Challenge: Output Variable Values in a Statement

Here is a challenge to test the concepts related to variables.

We'll cover the following

Problem statement #

In this coding challenge, you have to define two variables in your main function and assign them values 20 and 2.11. Now using these two variables, you have to print the following statement: “I have exchanged 20 Euros at the rate of 2.11”.

Input #

Two variables having values 20 and 2.11.

Output #

I have exchanged 20 Euros at the rate of 2.11

Get hands-on with 1200+ tech skills courses.