- 1

How to print only number using if ?

9th May 2020, 9:43 AM
Dechen Wangchuk
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!!
9th May 2020, 9:57 AM
Abhay
Abhay - avatar
+ 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
9th May 2020, 10:06 AM
Abhay
Abhay - avatar
0
In c++
9th May 2020, 9:53 AM
Dechen Wangchuk
0
Can you elaborate it please
9th May 2020, 9:53 AM
Dechen Wangchuk