asked 119k views
2 votes
HELLO answer this. Sidney needs to create a decimal number variable that will be added to another number. What kind of variable is required?

A. binary

B. Boolean

C. string

D. float

2 Answers

3 votes
This answer would be D
answered
User Elias Vargas
by
7.6k points
6 votes

Answer:

Option D. float is the correct answer.

Step-by-step explanation:

Decimal number contains decimal point. Out of all the given data types, float data type store the number with decimal point.

As the number has to be further used for calculations float ahs to be used. Because the numbers can also be stored in string but cannot be used for further calculations.

Hence,

Option D. float is the correct answer.

answered
User Interstar
by
9.0k points