how I can to exclude all symbols in my if statement. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how I can to exclude all symbols in my if statement.

I create a calculator and I want to know how I can to do excluded of all the symbols if the user enter its in the input because I want to deal just with numbers and mathematical operators (like: +, -, *, /) another things I want to exclude its in my if statement... if you are understand what I mean you can help me please..

19th Feb 2020, 12:04 PM
ismail chraa
ismail chraa - avatar
3 Answers
19th Feb 2020, 12:17 PM
Gordon
Gordon - avatar
+ 1
ismail chraa Welcome. Keep up 💪
19th Feb 2020, 2:05 PM
Gordon
Gordon - avatar
0
Gordon thanks so much for explanation!
19th Feb 2020, 2:05 PM
ismail chraa
ismail chraa - avatar