Display rand() + rand() in cout in c++
Im desiging a maths quiz as practice of C++ as im a beginner. I've assigned random numbers using the following code:

int random_integer = rand();
int random_integer2 = rand();

my problem is that i can't get cout to display what the results of the random number will be (which is basically my equation)
i only know this expression, which i've tried both with and without quoatations

cout << "random_integer + random_integer2";

  

Display rand() + rand() in cout in c++
===

Im desiging a maths quiz as practice of C++ as im a beginner. I've assigned random numbers using the following code:

int random_integer = rand();
int random_integer2 = rand();

my problem is that i can't get cout to display what the results of the random number will be (which is basically my equation)
i only know this expression, which i've tried both with and without quoatations

cout << "random_integer + random_integer2";

  
