Give the java codes to perform the indicated tasks
1. Declare variables x and y to be of type float
2. Assign the value 10 to variable A.
3. Increase the value of variable X by 2.
4. Double the value assigned to variable X
5. Assign the sum of A and B to variable sum.
Thank you and more power to you guys!!!
1. Declare variables x and y to be of type float
2. Assign the value 10 to variable A.
3. Increase the value of variable X by 2.
4. Double the value assigned to variable X
5. Assign the sum of A and B to variable sum.
Thank you and more power to you guys!!!