CSPrograms4u
Nothing Succeeds Like Success
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 : -
**Author**
Sukhvir Singh
Subscribe for Video Lectures
No comments:
Post a Comment
Note: only a member of this blog may post a comment.
‹
›
Home
View web version
No comments:
Post a Comment
Note: only a member of this blog may post a comment.