C++ basics
C++
int, float
The int data type is a good choice for storing whole numbers that do not require a fractional part. For example, the int data type could be used to store the number of items in a list or the age of a person.
The float data type in C++ is used to represent single-precision floating-point numbers. Floating-point numbers are numbers that have a decimal point. The float data type can store numbers in the range of approximately 1.5 × 10⁻⁴⁵ to 3.4 × 10³⁸. The precision of a float is 6-7 decimal digits.
#30DaysOFCreative