Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace consoleApp
- {
- class Program
- {
- static void Main(string[] args)
- {
- int getNum, totalCars;
- const int perCar = 6;
- Console.WriteLine("Enter Num Of Drovens");
- getNum = int.Parse(Console.ReadLine());
- totalCars = (getNum / perCar) + (((getNum % perCar) + (perCar - 1)) / perCar);
- Console.WriteLine("Total Cars: {0}", totalCars);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement