home
clear breadcrumbs
search
login
 
passing by reference
#include
using namespace std; void discount(int& num); void main() { int number{ 70 }; discount(number); cout << number << endl; } void discount(int& num) { if (num > 60) { num = 60; } }