The following variables have been initialized for you: int a; float f: double d: You have to cast the variable into different data types as follows: • Cast a as float to a variable x. • Cest fas an...


The following variables have been initialized for you:<br>int a;<br>float f:<br>double d:<br>You have to cast the variable into different data types as follows:<br>• Cast a as float to a variable x.<br>• Cest fas an integer to a varieble y.<br>• Cest d as flost to a variable z.<br>Hint: You nae to initia ize the varlebles xy and z of proper data types.<br>Note: The required code to take user input is already written for you. Similar to<br>value asinput.<br>Sample Input<br>11<br>12.2345<br>12.34567895343534511<br>Sample Output: =110y-12z=12.3-5679<br>

Extracted text: The following variables have been initialized for you: int a; float f: double d: You have to cast the variable into different data types as follows: • Cast a as float to a variable x. • Cest fas an integer to a varieble y. • Cest d as flost to a variable z. Hint: You nae to initia ize the varlebles xy and z of proper data types. Note: The required code to take user input is already written for you. Similar to value asinput. Sample Input 11 12.2345 12.34567895343534511 Sample Output: =110y-12z=12.3-5679

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here