Computer Science, asked by Aditya22795, 7 months ago

wap in java to check whether the number is divisible by 7 and the last digit is 7.​

Answers

Answered by Vaishnavimewati
3

Answer:

To check if a number is evenly divisible by 7: Take the last digit of the number, double it Then subtract the result from the rest of the number If the resulting number is evenly divisible by 7, so is the original number.Divisibility by 7 and 7 is Divisible by taking the last digit of the number, doubling it and then subtracting the doubled number from the remaining number. If the number is evenly divisible by seven, the number is divisible by seven!

Similar questions