Programing: A. Create 2 Simple Mathematic Operator Function Using C++ Programming Language Software
Programing: A. Create 2 Simple Mathematic Operator Function Using C++ Programming Language Software
VI.
<< = The bitwise left shift (<<) shifts operator bits to the left.
VII.
Hello World\n"; = In fact, this statement performs the only action that generates a
visible effect in our first program. A statement is a simple or compound expression
that can actually produce some effect.
\n = (new line) Moves the active position to the initial
position of the next line.
= the separation between statements is specified with an ending semicolon (;) at the
end of each one, so the separation in different code lines does not matter at all for this
purpose.
return 0; = The return statement causes the main function to finish
VIII.
IX.
X.
int main()
{
int m, n, total;
std::cout <<"\n Masuk nilai m:";
std::cin >> m;
std::cout <<"\n masuk nilai n:";
std::cin >> n;
total= m/n;
system("PAUSE");
return 0;
}
6. Compilation process
9 Result