Aug 30, 2024
main()
function (entry point).#include <iostream>
for input/output functionalities.std::cout
for printing.Variables:
type name = value;
Constants:
const
to prevent value changes.Naming Conventions:
Mathematical Expressions:
Reading/Writing Console Input:
std::cin
for input.Standard Library Functions:
cmath
for mathematical functions (e.g., floor
, pow
).Comments:
rand()
from cstdlib
for generating random integers.srand()
and using the current time for different results.