110A . Nearly Lucky Number

Revision en1, by Akshansh_01, 2022-08-04 12:09:48

Could anyone help me with this problem? I have done the part where it checks the number if it contains 4 and 7 it prints YES else it prints NO. But if the number contains only digit 4 or 7 such as 444 or 777 then it should print NO but my code is printing YES. I need help with this part.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Akshansh_01 2022-08-04 12:09:48 314 Initial revision (published)