+0  
 
+1
380
1
avatar

Which positive integers satisfy the following three conditions?

* The number consists of at least two digits.

* The last digit is not zero.

* Inserting a zero between the last two digits yields a number divisible by the original number.

 Jan 9, 2020
 #1
avatar
0

a=1;b=11;c=b%10;d=int(b/10);f=d*100+c;e=if(f%b==0, goto6, goto7);printf,b;a++;if(a<1000,goto2,0);a=1;b=b+1;if(b<1000,goto2,0)


OUTPUT:
15          105
18          108
 

 Jan 9, 2020
edited by Guest  Jan 9, 2020

2 Online Users

avatar
avatar