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!
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!