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

User JHBonarius
by
4.8k points

2 Answers

3 votes
This answer would be D
User Elias Vargas
by
4.7k 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.

User Interstar
by
5.8k points