How to divide obtained from Scanner, by values (Java) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to divide obtained from Scanner, by values (Java)

I need to create a calculator. Which receives from the scanner: for example.: 5 + 8 or 15 / 3 .etc Аnd need to separate this expression by elements Input : 5 + 8 int a //5 char b // + int c // 8 Output: 13

5th Oct 2019, 9:13 AM
AllBeEver
AllBeEver - avatar
0 Answers