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

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 15:14

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

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