Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int player, teamsize;
- Console.WriteLine("please enter number of players?");
- player = Convert.ToInt16(Console.ReadLine());
- Console.WriteLine("please enter size of teams?");
- teamsize = Convert.ToInt16(Console.ReadLine());
- int result = player / teamsize;
- int remainder = player % teamsize;
- Console.WriteLine("you can have " + result + " with the ammount of remaining players being " + remainder);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement