Multiply Plus Minus
Statement
Goal
You are given a line containing the characters "The stretches with "
For example,
Multiply all the numbers separated by "
Output the resulting product.
Input
Line 1: A line input of text containing only + , - and * .
Output
Line 1: The output of the calculation.
Constraints
1 ≤ len(input) ≤ 100
Example
Input
+++
Output
3
Game modes
Reverse
Test cases
Test 1 Test
Input
+++
Output
3
Validator 1 Validator
Input
++++
Output
4
Test 2 Test
Input
+-+-
Output
0
Validator 2 Validator
Input
-+-+
Output
0
Test 3 Test
Input
+++--*----+
Output
-3
Validator 3 Validator
Input
++++-*+++++--
Output
9
Test 4 Test
Input
--+++-+-+-+*+++-++++---+-*-+-+-+----++*++++--
Output
-12
Validator 4 Validator
Input
----+-+*-+---+-+-*--+++--++++-+*-+-+++-+-+-+-*+++++---
Output
54
Solution language
Solution
Stub generator input