Write a program that will ask for two integer numbers. Assign the first integer to the first operand and assign the second integer to the second operand.
Use the following assignment operators: =, *=, /=, %=, +=, and -=
Display the result of each operation.
Consider the following sample output:
Enter 1st number: 10
Enter 2nd number: 5
Num1 = Num2 is 5
Num1 *= Num2 is 50
Num1 /= Num2 is 2
Num1 %= Num2 is 0
Num1 += Num2 is 15
Num1 -= Num2 is 5
tentrabyte 0 Newbie Poster
Tycellent 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.