Anna wants to write a program that counts the number of students in a school. Which data type should she use for the count?

  • bool
  • float
  • int
  • string
Anna should use the 'int' (integer) data type. Integers are used for storing whole numbers, which is ideal for counting discrete items like the number of students. It provides efficient memory usage and supports mathematical operations.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *