DEV Community

Moksh Upadhyay
Moksh Upadhyay

Posted on

1

Finding Numbers Divisible by 3 and 5

Hey Dev Community!

Are you diving into C programming and looking for a hands-on exercise to sharpen your skills? I've just published a new blog post where I walk you through writing a simple C program to find numbers between 1 and 50 that are divisible by both 3 and 5. This exercise is perfect for beginners aiming to understand loops and conditional statements in C.

In the blog, I cover:

  • Setting up a for loop to iterate through numbers

  • Using conditional statements to check for divisibility

  • Printing the results and counting the qualifying numbers

Check out the full blog here

I'd love to hear your feedback and any questions you may have. Let's learn and code together! 💻🎉

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay