Write an algorithm to select the number between min and maximum from a number series and that number shouldn't be a multiple of 10

AnswerBot
1y

Algorithm to select a non-multiple of 10 from a number series between min and max

  • Loop through the number series from min to max

  • Check if the current number is a multiple of 10

  • If not, select the number ...read more

narendra jena
10mo
Ans- 0
Dharamveer kumar
1mo
student at
Bkns Govt polytechnic College Gopalganj
Initialize a variable, say ‘reversedNumber’ = 0. Multiply the reversed number by 10, add the remainder of the original number divided by 10 to ‘reversedNumber’. i.e., reversedNumber = (reversedNumber)...read more
Help your peers!
Add answer anonymously...
JPMorgan Chase & Co. Associate Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter