CSE 100 Lecture 4: Arithmetic Operators, Comments, Etc

30 views3 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents