Ответ:
#include <iostream>
int main()
{
setlocale(LC_ALL, "Russian");
double a, b, square, perimeter;
std::cout << "Введите a: ";
std::cin >> a;
std::cout << "Введите b: ";
std::cin >> b;
square = a * b;
perimeter = 2 * (a + b);
std::cout << "Площадь: " << square << std::endl;
std::cout << "Периметр: " << perimeter << std::endl;
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
#include <iostream>
int main()
{
setlocale(LC_ALL, "Russian");
double a, b, square, perimeter;
std::cout << "Введите a: ";
std::cin >> a;
std::cout << "Введите b: ";
std::cin >> b;
square = a * b;
perimeter = 2 * (a + b);
std::cout << "Площадь: " << square << std::endl;
std::cout << "Периметр: " << perimeter << std::endl;
return 0;
}