hi, i am new here.

hi guys,
i wonder if someone could help me with my problem.

i was given a problem ,

i need to multiply by 5 and add by 2 the random numbers wich will be put by the user, this is on array.

i hope someone could help, thank you.
1
2
3
4
int num = 0;
std::cout << "enter a number: ";
std::cin >> num;
std::cout << num * 5 + 2 << '\n';
Topic archived. No new replies allowed.