Can you help me for doing this code

Given the screen width W and height of H, distribute

circles of radius R on the screen. How many such circles

will fit on the screen?

What do you have so far? What part do you need help with?

I didn’t get the answer…I want the code in c language.

If you want someone to just do your assignment for you, you’ve come to the wrong place. We’d be happy to help you with your solution, but we’re not going to give you one.

Sorry sir… it’s not for me… my friend asked me to help.i know the formula but I don’t know how to do it.
Formula is: W/2r * h/2r

Firstly, welcome to the forums.

While we are primarily here to help people with their Free Code Camp progress, we are open to people on other paths, too.

With your current questions, we don’t have enough context to know what you already know or don’t know, so it is impossible to guide you without just telling you the answer (which we won’t do).

It is pretty typical on here for people to share a codepen / repl.it / jsfiddle example of what they have tried so that anyone helping has more of an idea of what help is actually helpful.

Please provide some example of what you’ve tried and I’m sure you’ll get more help.

Happy coding :slight_smile: