Computer Science, asked by tochukwu, 6 months ago

what is the difference between arithmetic expression and Qbasic expression

Answers

Answered by deviv8390
14

Explanation:

arithmetic expression is formed by operands (variables, constant, function) with arithmetic operators among them . an expression is a sequence of binary or unary or ternary operator along their operands..........

I hope you understand

Answered by Abealexander8
5

Answer: Arithmetic Expressions

An arithmetic expression is a syntactically correct combination of numbers, operators, parenthesis, and variables.

You have not (officially) seen variables yet, so ignore that part of the definition. Here are several arithmetic expressions, similar to those you saw in the previous chapter:

25 + 15                     32.128 - 19.6 + 3.2

-14 / 3                      1.243 ^ 5

-23.77 * -2                  10 - 5 - 8

Remember that syntax means the rules for putting together a correctly formed statement. Arithmetic expressions are parts of statements, so must follow syntax rules in order to be correct. You are already familiar with these rules: they are the same rules as for pencil-and-paper arithmetic.

Expressions are used in QBASIC in order to perform calculations. QBASIC can handle arithmetic expression involving the five arithmetic operators + (addition), - (subtraction), * (multiplication, / (division) and ^ (exponentiation).

I HOPE THIS IS HELPFUL

Similar questions