int main()
{
int num1,product,num2;
std::cout << "enter integer 1 :"; std::cin >> num1;
std::cout << "enter integer 2 :"; std::cin >> num2;
product = num1 * num2;
std::cout << product;
system("pause");
return 0;
}
-do you understand what this code does? it asks the user for 2 numbers and multiplies them
and prints the product to the screen.
sign meaning
+ addition
- subtraction
++ increment +1
-- decrement -1
/ divide
* multiplication
% mudulus // returns the remainder
No comments:
Post a Comment