Вопрос задан 16.06.2023 в 12:00. Предмет Информатика. Спрашивает Қонысбеков Заңғар.

Створити програму для визначення в центнерах значення … кг + … ц + … т. дам 30б​

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

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

Внимание! Ответы на вопросы дают живые люди. Они могут содержать ошибочную информацию, заблуждения, а также ответы могут быть сгенерированы нейросетями. Будьте внимательны. Если вы уверены, что ответ неверный, нажмите кнопку "Пожаловаться" под ответом.
Отвечает Киров Дмитрий.

Python

a,b,c=map(int, input('Введите вес в кг  ц  т : ').split())

m=c*10+b+a/100

print('Масса в ц =', m)


0 0
Отвечает нейросеть ChatGpt. Будьте внимательны, ответы нейросети могут содержать ошибочные или выдуманные данные.

Program for Converting Weight Units

To create a program for converting weight units, you can use Python as an example. Below is a simple Python program that takes a weight in kilograms and converts it into centners, as well as other weight units.

```python # Function to convert kilograms to centners def kg_to_centner(weight_in_kg): return weight_in_kg / 100

# Function to convert kilograms to metric tons def kg_to_metric_ton(weight_in_kg): return weight_in_kg / 1000

# Input weight in kilograms weight_in_kg = 30

# Convert to centners weight_in_centner = kg_to_centner(weight_in_kg) print(f"{weight_in_kg} kilograms is equal to {weight_in_centner} centners.")

# Convert to metric tons weight_in_metric_ton = kg_to_metric_ton(weight_in_kg) print(f"{weight_in_kg} kilograms is equal to {weight_in_metric_ton} metric tons.") ```

This program defines two functions to convert kilograms to centners and metric tons. It then takes an input weight in kilograms (in this case, 30 kilograms) and uses the defined functions to convert it to centners and metric tons.

Note: This is a simple example using Python. Depending on the specific requirements and the programming language you want to use, the implementation may vary.

0 0

Похожие вопросы

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

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

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