Computer Studies
Convert the following mathematical expressions into QBASIC expressions.
| Mathematical Expressions | QBASIC Expressions |
|---|---|
| 4 x 5 + 15 | |
| a + bc | |
| (ab + cd)/2 | |
| pqr | |
| a2 + b3 + c4 |
QBASIC: Character Sets
124 Likes
Answer
| Mathematical Expressions | QBASIC Expressions |
|---|---|
| 4 x 5 + 15 | 4 * 5 + 15 |
| a + bc | a + b * c |
| (ab + cd)/2 | (a * b + c * d) / 2 |
| pqr | p * q * r |
| a2 + b3 + c4 | a ^ 2 + b ^ 3 + c ^ 4 |
Answered By
38 Likes
Related Questions
Write down the names of the following relational operators:
Relational Operator Meaning > <= = <> < >= Name the three types of logical operators and also mention how they are used in QBASIC.
Rewrite the given instructions in QBASIC:
- The product of p, q and r is divided by 100.
- m raised to the power 2 plus n raised to the power 3.
- The sum of a and b is divided by the product of a and b.
- Subtract 5 from m and the result is multiplied by 10.
- The sum of p and q is multiplied by 2.
- A is greater than or equal to B.
- The sum of A and B is less than the product of A and B.
- Twice the product of A plus thrice the product of B is greater than or equal to 50.
What is meant by the language QBASIC?