Minimum Cars

N friends want to go to a restaurant for a party. Find the minimum number of cars required to accommodate all the friends.
Note : A single car can accommodate 4 people.

        
       Input:-4
4
2
7
98
       Input Description: The first line contains A single integer T - The number of test cases. Then The test cases follow.
-The first and only line of each test case contains an integer N - denoting The number of friends. 
       Output: 1
1
2
25
       Output Description: For each test case, output the minimum number of cars required to accommodate all the friends. 
       Constraints: 1<=T<=1000
2<=N<=1000
       Explanation: Test Case 1: There are only 4 friends and a single car can accommodate 4 people. Thus, only 1 car is required.

Test Case 2: There are only 2 friends and a single car can accommodate 4 people. Thus, only 1 car is required

Test Case 3: There are 7 friends and 2 cars can accommodate 8 people. Thus, 2 cars are required.

Loading...