26.7k views
5 votes
Write a statement to assign to kilos the value of pounds divided by 2.2. (The variables have already been declared and pounds has already been initialized .)

User Ramanujan
by
8.1k points

1 Answer

3 votes

Final answer:

To assign the value of pounds divided by 2.2 to the variable kilos, use the assignment statement 'kilos = pounds / 2.2;'.

Step-by-step explanation:

To assign the value of pounds divided by 2.2 to the variable kilos, you can use the assignment statement:

kilos = pounds / 2.2;

This statement takes the value of pounds, divides it by 2.2, and assigns the result to the variable kilos. For example, if pounds is initialized to 10, then after executing this statement, kilos will be assigned the value of 10 divided by 2.2, which is approximately 4.5455.

User Jonathan Rosenne
by
7.7k points