Вопрос задан 22.02.2019 в 07:37. Предмет Информатика. Спрашивает Вишнівська Яна.

Даны длины 4-х сторон, определите какая фигура получится. информатика

0 0
Перейти к ответам

Ответы на вопрос

Внимание! Ответы на вопросы дают живые люди. Они могут содержать ошибочную информацию, заблуждения, а также ответы могут быть сгенерированы нейросетями. Будьте внимательны. Если вы уверены, что ответ неверный, нажмите кнопку "Пожаловаться" под ответом.
Отвечает Голубева Настя.
Язык C++.
#include <iostream>
using namespace std;
int main(){
    int a, b, c, d;
    cout << "Введите длины сторон попарно: " << endl;
    cin >> a >> b >> c >> d;
    if(a == b && a==c && a==d && c==b && c==d && b==d)
    cout << "Квадрат или ромб." << endl;
    else if (a==b && c==d)
    cout << "Прямоугольник или параллелограмм." << endl;
    else
    cout << "Трапеция или произвольный четырехугольник." << endl;
    }
0 0
Отвечает нейросеть ChatGpt. Будьте внимательны, ответы нейросети могут содержать ошибочные или выдуманные данные.

Determining the Shape Based on the Lengths of 4 Sides

To determine the shape based on the lengths of the 4 sides, we need more information about the specific lengths and their relationships. Without this information, it is not possible to determine the exact shape. However, I can provide some general information about different shapes based on the number of sides:

1. Triangle: A triangle has 3 sides. If you have 4 side lengths, it is not possible to form a triangle.

2. Quadrilateral: A quadrilateral has 4 sides. There are different types of quadrilaterals, such as squares, rectangles, parallelograms, rhombuses, and trapezoids. The specific type of quadrilateral can be determined based on the relationships between the side lengths and angles.

3. Polygon with more than 4 sides: If you have 4 side lengths, it is not possible to form a polygon with more than 4 sides.

To determine the exact shape, we would need additional information about the relationships between the side lengths, such as angles or additional side lengths.

0 0

Топ вопросов за вчера в категории Информатика

Последние заданные вопросы в категории Информатика

Задать вопрос