Page 2: Floating-Point Types and Operators
This page delves into floating-point data types and basic arithmetic operators in C++ podstawy.
Definition: float and double are used for storing decimal numbers with different precision levels.
Vocabulary: setprecision() - Controls the number of decimal places displayed.
Example: Arithmetic operators:
int a = 5, b = 2;
cout << a + b; // Addition
cout << a - b; // Subtraction
cout << a * b; // Multiplication
cout << a / b; // Division
Highlight: The increment (++) and decrement (--) operators can be used in both prefix and postfix forms.






























