+ 9
Display all the numbers between 0 and 200 satisfying all the below conditions: i) Sum of the digits should be 9
ii) Digits should be in ascending order i.e., the digit on the left should be lesser than the digit in the right For Example: 27 -> 2+7=9 and 2 is less than 7 For Example: 135 -> 1+3+5=9 and 1 is less than 3 is less than 5
26 Respostas
+ 7
https://code.sololearn.com/coKaf59TS9eG/?ref=app
also, you can post your challenges here: https://www.sololearn.com/Discuss/1270852/?ref=app
+ 3
Java
+ 2
Give basic to advance codes for python?
+ 2
print([99*a+9*b+9 for a in [0,1] for b in range(a,(9-a)//2+1) ])
+ 2
Please find the Coding challenge:
1.) Display all the numbers between 0
and 200 satisfying all the below conditions. Conditions: i) Sum of the digits should be 9 ii) Digits should be in ascending order i.e., the digit on the left should be lesser than the digit in the right For Example: 27-> 2 + 7 = 9 and 2 is less than 7
For Example: |35-> l + 3 + 5 = 9 and I is less than 3 is less than 5
How to solve in java language
+ 1
this is wonderful, but what have you already done for this?
+ 1
Thanks m8
+ 1
Can Anyone do it in Java??..
+ 1
Display all the numbers between 0 and 200 satisfying all the below conditions: i) Sum of the digits should be 9
ii) Digits should be in ascending order i.e., the digit on the left should be lesser than the digit in the right For Example: 27 -> 2+7=9 and 2 is less than 7 For Example: 135 -> 1+3+5=9 and 1 is less than 3 is less than 5
Can anyone do this challenge in java
0
Hi! what are your thoughts on this?
0
This is my coding challenge for interview round
0
[(s:=(f"{i}")) and sorted(set(s))==list(s) and sum(map(int,s))==9 and print (i) for i in range(200)]
0
Thanks you all🤗🙏🏼
0
Plz help me am not understand the coding
0
do this code ans useing javascript
0
Pls this code in java
0
Display all the number between 0 and 200 satisfying all the below conditions
0
Give me answer
0
n = 200
for i in range(1,n+1):
a = [int(j) for j in str(i)]
b = sum(a)
if b == 9 and a == sorted(a) and len(a)==len(set(a)):
print(i)