Java program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Java program

Please find the Coding challenge: For a Range of 0 - 500 numbers, find all the numbers that satisfy both the below conditions 1)The number should have duplicate digits 2)The sum of the digits should be less than or equal to 5

15th Dec 2022, 5:10 AM
Mukesh
Mukesh - avatar
3 Answers
+ 2
Mukesh Pls edit your question description and add a link to your code from Code Playground and an explanation of your difficulties. We should know what help you need.
15th Dec 2022, 11:54 PM
Emerson Prado
Emerson Prado - avatar
+ 1
for n = 0 to 500 If hasDuplicates(n) If sum(n) == 5 list.Add(n) Where are you stuck
15th Dec 2022, 5:42 AM
Raul Ramirez
Raul Ramirez - avatar
0
Pls show me with java
5th Feb 2023, 8:23 AM
Muhajir Ahmadh
Muhajir Ahmadh - avatar