We use cookies to personalise content and advertisements and to analyse access to our website. Furthermore, our partners for online advertising receive pseudonymised information about your use of our website. cookie policy and privacy policy.
 
+0  
 
0
38
1
avatar

An oddie number is a 3-digit number with all three digits odd.  Find the number of oddie numbers divisible by 3.

 Nov 27, 2019

Best Answer 

 #1
avatar
+1

a=0;b=0;c=0;p=0; cycle:d=a*100+b*10+c;if(d%3==0 and a%2==1 and b%2==1 and c%2==1, goto loop, goto next); loop:printd," ",;p=p+1; next:c++;if(c<10, goto cycle, 0);c=0;b++;if(b<10, goto cycle, 0);b=0;c=0;a++;if(a<10, goto cycle,0);print"Total = ",p

 

111  117  135  153  159  171  177  195  315  333  339  351  357  375  393  399  513  519  531  537  555  573  579  591  597  711  717  735  753  759  771  777  795  915  933  939  951  957  975  993  999  Total =  41 such numbers

 Nov 27, 2019
 #1
avatar
+1
Best Answer

a=0;b=0;c=0;p=0; cycle:d=a*100+b*10+c;if(d%3==0 and a%2==1 and b%2==1 and c%2==1, goto loop, goto next); loop:printd," ",;p=p+1; next:c++;if(c<10, goto cycle, 0);c=0;b++;if(b<10, goto cycle, 0);b=0;c=0;a++;if(a<10, goto cycle,0);print"Total = ",p

 

111  117  135  153  159  171  177  195  315  333  339  351  357  375  393  399  513  519  531  537  555  573  579  591  597  711  717  735  753  759  771  777  795  915  933  939  951  957  975  993  999  Total =  41 such numbers

Guest Nov 27, 2019

19 Online Users

avatar
avatar