INTRODUCTION TO ALGORITHMS AND PROGRAMMING
What floor are they?
Mr. Arbi Cela works in National Post Services. He distributes mails to the people. Sometimes he goes to apartments buildings and has to find out the floor number from the apartment number. Write a program that will find out the floor number from the given data.
Input Specifications: You will be given 3 integer numbers
? n: the number of apartments in this building
? m: the number of apartments in every floor
? k: starting floor number for the apartments
where 0 <= n <= 50, 1 <= m <= 10, -3 <= k <= 5. Then the following line, you will be given n space separated apartment numbers which are between 1 and 1000.
Output Specifications: show n space-separated integers: the floor numbers for every apartment given.
4 6 3
32 3 22 17
8 3 6 5
I need help in C++
Post a Reply
|Oldest Newest Rating|
Used in many types of software including music players, video games, and many large scale applications.
|Bucky Roberts Administrator|