while True: try: n = int(input()) num =0 for i in range(6,n+1): if '7' in str(i) or i%7 == 0: num = num+1 print(num) except: break
点赞

相关推荐

点赞 评论 收藏
分享
牛客网
牛客企业服务