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 intin;
A float from the keyboard and assign it to the variable floatin;
A string from the keyboard and assign it to the variable strin
After you have received all the input, print the following in order:
The variables as in the order above intin then floatin and finally strin;
The variables shifted one position to the left floatin then strin and finally intin;
The variables shifted two positions to the left strin then intin and finally floatin
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
