Написать программу для ввода с клавиатуры двух вещественных и двух целых чисел.

21 Июн 2020 в 19:44
141 +1
0
Ответы
1
include

int main() {
double real1, real2;
int int1, int2;

std::cout << "Enter the first real number: ";
std::cin >> real1;
std::cout << "Enter the second real number: ";
std::cin >> real2;
std::cout << "Enter the first integer: ";
std::cin >> int1;
std::cout << "Enter the second integer: ";
std::cin >> int2;
std::cout << "You entered the following values:" << std::endl;
std::cout << "Real numbers: " << real1 << " and " << real2 << std::endl;
std::cout << "Integers: " << int1 << " and " << int2 << std::endl;
return 0;

}

18 Апр 2024 в 10:55
Не можешь разобраться в этой теме?
Обратись за помощью к экспертам
Гарантированные бесплатные доработки в течение 1 года
Быстрое выполнение от 2 часов
Проверка работы на плагиат
Поможем написать учебную работу
Прямой эфир