Print N Numbers and print FOOBAA is num is divisble by 5 and 3 . Print Foo if divisible by 5 and Bar if divisible by 3

AnswerBot
1y

Print numbers and FOOBAA if divisible by 5 and 3 respectively. Print Foo if divisible by 5 and Bar if divisible by 3.

  • Use a loop to iterate through the numbers from 1 to N

  • Check if the number is divisib...read more

Help your peers!
Add answer anonymously...
Wipro Senior Analyst - SSE 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
Get AmbitionBox app

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