Question: Goal: Learn how to read input data from the user, and store it in variables with the correct types. Assignment: Write code that takes as

Goal: Learn how to read input data from the user, and store it in variables with the correct types.
Assignment: Write code that takes as input the following:
An int from the keyboard and assign it to the variable int_in;
A float from the keyboard and assign it to the variable float_in;
A string from the keyboard and assign it to the variable str_in.
After you have received all the input, print the following (in order):
The variables as in the order above (int_in, then float_in and finally str_in);
The variables shifted one position to the left (float_in, then str_in and finally int_in);
The variables shifted two positions to the left (str_in, then int_in and finally float_in).
Note: the variables should be separated exactly by one space. Any other format will not be accepted.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!