- 1
How to print only number using if ?
5 Answers
+ 2
You didn't mentioned the language ,so take time to post a specific question from next time with language mentioned in tags,also that is python isdigit method that checks whether a list contains number or not ,if it is then it would print that way ,I dunno about C++,Sorry!!
+ 2
One way to check a number in c++ or any language would be to get the ASCII number range and check whether that element in the array or string falls in that range or not
0
In c++
0
Can you elaborate it please