help in code

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 ?
What do you mean by 'A%7 == 0' ? That the numbers are divisible by 7 without remainder?
Last edited on
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
1
2
   int N = 1000;
   cout << N / 42;

Now, where have I seen that number 42 before ... ?
Topic archived. No new replies allowed.