Variables (Different Types)
Variables (Different Types)
When to use:
Use int when working with whole numbers (count, index, etc.).
Use double or float for fractional numbers (prices, measurements).
Use string for text data.
Use bool for true/false values.