cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
help in code
help in code
Oct 27, 2018 at 5:18pm UTC
sabagventsadze
(5)
so i need help . i need to write a cpp code
which will be able to count amount of numbers from 1 to 1000 which can be
divided by 6 and 7 at the same time but A%7==0 can u help me to write my code ?
Oct 27, 2018 at 5:55pm UTC
nuderobmonkey
(640)
What do you mean by 'A%7 == 0' ? That the numbers are divisible by 7 without remainder?
Last edited on
Oct 27, 2018 at 5:56pm UTC
Oct 27, 2018 at 5:59pm UTC
The Brahmnic Boy
(30)
I think he/she probably means that the number that is divisible by both and 7.
But OP should write a basic layout to get an idea of what functions he/she is familiar with, shouldn't they?
(I am NOT an expert.)
Last edited on
Oct 27, 2018 at 6:00pm UTC
Oct 27, 2018 at 6:06pm UTC
lastchance
(6980)
1
2
int
N = 1000; cout << N / 42;
Now, where have I seen that number 42 before ... ?
Topic archived. No new replies allowed.