Chapter 4: Arithmetic and Assignment Operations
- Basic Arithmetic Operations:
- Addition, subtraction, multiplication, division, and modulus.
- Using variables to store and compute values.
- Assignment Statement:
- Assigning the result of an operation to a variable.
- Example:
total = num1 + num2
.
- Creating a Flowchart:
A flowchart that computes the area of a rectangle using width and height as inputs. - Example:
A program that calculates the average of three numbers entered by the user.