How to divide obtained from Scanner, by values (Java) | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antworten