DEV Community

Moksh Upadhyay
Moksh Upadhyay

Posted on

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)