[help]C++ beginner noob # 2
hello guys
i just finished learning about variables and i incorporated it into my 2nd program, but i just want to know if i made any errors with the declarations or anything like that.
// C++ program Number 2
# include <iostream>
using namespace std;
int main ()
{
//declaring variables
int mpgh1;
int mpgh2;
// Process:
mpgh1 = 3;
mpgh2 = 1;
mpgh1 = mpgh1 = 3;
result = mpgh1 - mpgh2;
//functions to print out the results
cout << result;
//terminte (ends the program)
return 0;
}