The lesson for assignment operators was very short. what is the exact purpose of the assignment operators and how do they fit into programming.
Short & concise code is friendly to the eyes, and is a blessing especially to programmers that work for huge companies/contractors (due to dealing with several hundreds of thousands of lines of code, etc).
Assignment operators are simply to shorten your code and make it faster to write. I use them all the time. a += 5 means a = a + 5 a -= 5 means a = a - 5 a *= 5 means a = a * 5 a /= 5 means a = a / 5 a %= 5 means a = a % 5
Problem Statement Given two integers a and b, your task is to calculate and print the following four values:
Please help, any idea?