Do i just have to put a * instead of + and prodcut instead of sum? If so it didn't run.
Nope, you also need to define and initialize v1 and v2. Then it'll work:
#include <iostream>
int main()
{
int v1 = 2;
int v2 = 5;
std::cout << "The sum of " << v1 << " and " <<v2 << " is " << v1 * v2 << std::endl;
return 0;
}
deceptikon
Challenge Accepted
3,499 posts since Jan 2012
Reputation Points: 822
Solved Threads: 481
Skill Endorsements: 58
Question Answered as of 3 Months Ago by
HunainHafeez
and
deceptikon