answersLogoWhite

0


Best Answer

To check for divisibility, use the "%" operator - the remainder of a division. If the remainder is 0, it is divisible.

for (i = 1; i <= 100; i++)
if (i % 5 0) ...

To check for divisibility, use the "%" operator - the remainder of a division. If the remainder is 0, it is divisible.

for (i = 1; i <= 100; i++)
if (i % 5 0) ...

To check for divisibility, use the "%" operator - the remainder of a division. If the remainder is 0, it is divisible.

for (i = 1; i <= 100; i++)
if (i % 5 0) ...

To check for divisibility, use the "%" operator - the remainder of a division. If the remainder is 0, it is divisible.

for (i = 1; i <= 100; i++)
if (i % 5 0) ...

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

To check for divisibility, use the "%" operator - the remainder of a division. If the remainder is 0, it is divisible.

for (i = 1; i <= 100; i++)
if (i % 5 0) ...

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How Write a cprogram to find all the numbers divisible by 5and7 between 1to100?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Other Math