Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

C++: Dividing

Name: Anonymous 2013-01-07 13:55

Integer divides by 3 without residue when its total sum of all digits divides by 3 without residue too. I need to write a program to find how many there are natural n-digit numbers, that divides by 3 without residue. Natural number n is written in data file. Lastly, in result file we need to print how many we found numbers, which divides by 3 without residue, ant that numbers itself.

Directions:

Use integer type variables.
Do not use sentences for work with screen (input and output through text files only).
It was difficult to translate this task in English, I hope I've done it correctly and you will surely understand it. I really appreciate your inputs. Thanks!

Name: Anonymous 2013-01-07 14:21

I've got enough homework (i.e. none), thanks.

Name: Anonymous 2013-01-07 15:14

ap (,) length . enumFromThenTo 3 6 . (10^)

Name: Anonymous 2013-01-07 15:57

I'll do it if you pay me enough. I'm serious.

Name: Anonymous 2013-01-07 17:14

>>4
I doubt he's stupid enough to pay you when >>3 already did it for free.
But then, he is using Sepples, so I may have underestimated his stupidity.

Name: Anonymous 2013-01-07 19:45

>>3
THAT IS A NICE MONAD YOU HAVE THERE

Name: Anonymous 2013-01-07 19:51

>>5
But that's not valid SEPPLES.

Name: Anonymous 2013-01-07 20:00

Sure, it's not valid, but is it Abelson valid?

Name: Anonymous 2013-01-07 20:15

>>7
``SEPPLES'' and ``valid'' are mutually exclusive.

Name: Anonymous 2013-01-09 19:52

>>3
what monad are you using there?

Name: Anonymous 2013-08-27 13:51

check 'em

Don't change these.
Name: Email:
Entire Thread Thread List