Math, asked by efeadu45, 11 months ago

Write all possible 3 digit number sum of whose digit is 5

Answers

Answered by tikatika16
0

Answer:

1. 104

2. 212

3. 203

4.500

5. 410 etc.

Answered by anshulkumar995675600
0

Answer:

I'll do you one better

Step-by-step explanation:

Its to hard to do so just run this program on any online java platform.

class a

{

public static void main(String args[])

{

int i,s,d,copy;

for(i=100;i<=999;i++)

{

copy=i;

s=0;

while(copy>0)

{

d=copy%10;

copy/=10;

s=s+d;

}

if(s==5)

System.out.println(i);

}

}

}

Similar questions