bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch
Learn/C++

C++

C++ How To

C++ How To focused on C++ How To Add Two Numbers and related concepts.

Lesson 1

C++ How To Add Two Numbers

In this example, the user must input two numbers. Then we print the sum by calculating (adding) the two numbers:

Read lesson →Loading…
Lesson 2

C++ How To Generate Random Numbers

You can use the rand() function, found in the <cstdlib> library, to generate a random number:

Read lesson →Loading…