C++
C++ How To focused on C++ How To Add Two Numbers and related concepts.
In this example, the user must input two numbers. Then we print the sum by calculating (adding) the two numbers:
You can use the rand() function, found in the <cstdlib> library, to generate a random number: