Предмет: Информатика, автор: nadvorova69

Завдання 1. Ввести число з клавіатури. Перевірити в який з діапазонів воно входить. Діапазони (-∞, 0); [0, 10]; (10, 35];(35,∞) ​

Ответы

Автор ответа: Stephan2
1

С++

#include <iostream>

using namespace std;

int main() {

   double num;

   cout << "Введіть число: ";

   cin >> num;

   if (num < 0) {

       cout << "Число належить діапазону (-∞, 0)" << endl;

   } else if (num >= 0 && num <= 10) {

       cout << "Число належить діапазону [0, 10]" << endl;

   } else if (num > 10 && num <= 35) {

       cout << "Число належить діапазону (10, 35]" << endl;

   } else {

       cout << "Число належить діапазону (35,∞)" << endl;

   }

   return 0;

}

Похожие вопросы
Предмет: Английский язык, автор: fiksiki639
‼️допоможііть‼️
III. Read the question (Q) and the advice (A) given about job interview. Several phrases have been removed. Fill in the gap (1-8) with the phrases marked A-I.

There is one extra sentence. Q: Last week I got a call from another company that would like me to interview for a high- level position. But I'm not ready to move right now. I get along with my boss and co-workers. My friends tell me I'm missing an opportunity (1)_____. Why waste my time and theirs if I know I'm not interested?

A: Don't imagine that you are wasting anyone's time (2)______. Companies expect to interview people who may be not hired afterwards. Consider this as a fast way (3)_____. You can learn how your skills are evaluated by another company, how much you are worth and whether your experience gives us an opportunity for a higher-level job. Based on (4)____ you may be able to go back to your boss and (5)______. If the other company is very enthusiastic about your skills and experience, you may decide that you don't get much satisfaction about your present job and that the time is now (6)_____. In that case, don't agree to the first offer just because they call you. If, after interviewing, you decide that you really do not want the job, leave gracefully by saying something like, "After a lot of thought, I've decided that I'm not ready (7)_____ Then write the interviewer a thank-you note. Make yourself worth remembering by giving her (8)____.

A) ask for a higher-level job

B) to collect information about the job market
C) of checking out what the other company can offer

D) to make the move to a new position

E) when you need a new job

F) to start looking for a new job

G) what you discover during the interview

H) when you examine a job opportunity

I) the names of other qualified candidates​
Предмет: Литература, автор: sofizhur0711
Предмет: История, автор: lisyakisya48