Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,396 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,118 people online right now. Registration is fast and FREE... Join Now!




How do you use modulus?

 
Reply to this topicStart new topic

How do you use modulus?, How do you use modulus?

Cboy5392
20 Sep, 2006 - 05:17 PM
Post #1

New D.I.C Head
*

Joined: 20 Sep, 2006
Posts: 1


My Contributions
How do you use modulus? This is the problem. "Gym classes are to from volleyball teams of 7 each. "Write a program that asks for the number of players, and then give the number of teams and the number of players left over. The program ouput should look similar to:

Enter the number of players: 37
There will be 5 teams with 2 left over.

This is urgent! Please write back to help!!!!!!!!!!!!!!!!!!!!!!!
Show me how to do the program!!!
User is offlineProfile CardPM
+Quote Post

Xing
RE: How Do You Use Modulus?
20 Sep, 2006 - 05:18 PM
Post #2

D.I.C Addict
Group Icon

Joined: 22 Jul, 2006
Posts: 723



Thanked: 2 times
Dream Kudos: 1575
My Contributions
Modulus Operator
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/5/08 02:56AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month