Welcome

Arithmetic_operators

level

  • Basic
  • Beginner
  • Intermediate
  • Mixed
  • Advanced

Automated grading of homework assignments and tests

  • fork this repository
  • solve the task
  • commit with proper message
  • just push and check answer

Problems

arithmetic_operator01

Create a variable 'num_one' and assign it the value of the int 5. Create a variable 'num_two' and assign it the value of the int 4. Find the sum of 'num_one' and 'num_two' then assign to 'variable_total'

Example 1:

Input: 4, 5
Output: 9

Constraints:

  • 0<=num<=108

arithmetic_operator02

Create a variable "a" and assign it the value of the int 3. Create a variable "b" and assign it the value of the int 4. Create a variable called 'answer'. Find the sum of a and b than assign to 'answer'

Example 1:

Input: 3 , 4
Output: 7

Constraints:

  • 0<=num<=108

arithmetic_operator03

Create a variable "a" and assign it the value of the int 6. Create a variable "b" and assign it the value of the int 2. Create a variable called 'answer'. find the difference of a and b then assign to "answer"

Example 1:

Input: 6,2
Output: 4

Constraints:

  • 0<=num<=108

arithmetic_operator04

Create a variable "a" and assign it the value of the int 5. Create a variable "b" and assign it the value of the int 4. Create a variable called 'answer'. Find the multiplication of a and b then assign to 'answer'

Example 1:

Input: 5, 4
Output: 20

Constraints:

  • 0<=num<=103

arithmetic_operator05

Create a variable "a" and assign it the value of the int 72. Create a variable "b" and assign it the value of the int 9. Create a variable called "answer". Find the division of a and b then assign to "answer".

Example 1:

Input: 72, 9
Output: 8.0

Constraints:

  • 0<=num<=103

arithmetic_operator06

Create a variable "a" and assign it the value of the int 7. Create a variable "b" and assign it the value of the int 3. Create a variable "c" and assign it the value of the int 5. Create a variable called "answer". Find the sum of a, b and c then assign to "answer".

Example 1:

Input: 7, 3, 5
Output: 15

Constraints:

  • 0<=num<=103

arithmetic_operator07

Create a variable "a" and assign it the value of the int 12. Create a variable "b" and assign it the value of the int 4. Create a variable "c" and assign it the value of the int 1. Create a variable called 'answer'. Find the expression value assign to 'answer'. a - b + c

Example 1:

Input: 12, 4, 1
Output: 9

Constraints:

  • 0<=num<=103

arithmetic_operator08

Create a variable "a" and assign it the value of the int 3. Create a variable "b" and assign it the value of the int 4. Create a variable "c" and assign it the value of the int 2. Create a variable called 'answer'. Find the expression value assign to 'answer'. ab/c

Example 1:

Input: 3, 4, 2 
Output: 6.0

Constraints:

  • 0<=num<=103

arithmetic_operator09

Create a variable "a" and assign it the value of the int 8. Create a variable "b" and assign it the value of the int 3. Create a variable "c" and assign it the value of the int 2. Create a variable "d" and assign it the value of the int 4. Create a variable called 'answer'. Find the expression value assign to 'answer'. a+b - cd .

Example 1:

Input:8,3,2,4
Output: 3

Constraints:

  • 0<=num<=103

arithmetic_operator10

Create a variable "a" and assign it the value of the int 8. Create a variable "b" and assign it the value of the int 5. Create a variable "c" and assign it the value of the int 2. Create a variable "d" and assign it the value of the int 6. Create a variable called 'answer'. Find the expression value assign to 'answer'. a*b / c+d .

Example 1:

Input: 8, 5, 2, 6
Output: 26.0

Constraints:

  • 0<=num<=103

Warning

  • don't copy other solutions or any solution
  • don't remove comments