Monday, 30 August 2021

Python Program : 11 : Count occurrence of a digit 5 in a given integer number input by the user

PROGRAM :-
import math
n = int(input("Enter any integer value : "))
n = str(n)
print("Count of 5 : ",n.count("5"))

VIDEO LINK : -


No comments:

Post a Comment

Note: only a member of this blog may post a comment.