Answer the question
In order to leave comments, you need to log in
How to understand the task?
There is a question > "Write a program that enters an integer (both positive and negative) value of the angle and normalizes it in the range from 0 to 359
degrees", I've been reading it 20 times already and I just can't understand what needs to be done. Please write in human language what needs to be done.
Answer the question
In order to leave comments, you need to log in
Yes, everything is very clear. Regardless of the number you enter, you should output from 0 to 359.
You enter -20, you should output 340.
You enter 400, you get 40.
Imagine a compass that has no (-20) and no (+400) degrees. And there are only 0 and 359.
This is normalization
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question