int a{}, b{21}, sum{a+b}
isnt working how i thought it would.
i use std::cin >>a;
to input a number then i use << sum * 2 <<
in order to mulitply the total of a+b by 2.
instead what happens is that a{} is considered zero and it adds b{21} creating 21 and then it multiplies it by 2 and i just keep getting 42 no matter the number i input for std::cin >>.
i thought once i input a number for a{}, the number i input replaces the zero and then it would add with 21 then multiply by 2.