An oddie number is a 3-digit number with all three digits odd. Find the number of oddie numbers divisible by 3.
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
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