CSE 100 Lecture 4: Arithmetic Operators, Comments, Etc
Document Summary
Cse 100 lecture four notes - arithmetic operators, comments, etc. Ex : a + b = 36. Modulus operator and remainder of after an integer division. Increment operator increases the integer value by one. Operator that decreases the integer value by one. Comments are descriptions for actions taken in a code without being executed by the program. The cleanest way to write multiple comment lines is to use the method /**/ . The // is considered unnecessary, however it is still a viable way to complete multiple comment lines. A block is a set of logically connected statements enclosed by open and closed brackets int start = 90; // declaring the integer start return start; Num++ is equivalent to num = num +1. Decrements by one on the chosen variable. Num-- is equivalent to num = num - 1. There are three types of logical operators.