please help me to create a program about THE DECLARATION OF TWO VARIABLES CALLED COUNT AND DISTANCE.

int count;
int distance;

If you couldn't do that on your own, you really, really need to go right back to the beginning and start again.

Also, normally we don't do your homework for you. Of course, you still need to initialize your variables to a sane value. I think Moschops is leaving that exercise to you... :-)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.