Вопрос задан 25.07.2018 в 21:26. Предмет Информатика. Спрашивает Лукьянов Иван.

Составить программу которая выводит таблицу умножение на любое число 8 класс

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

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

Внимание! Ответы на вопросы дают живые люди. Они могут содержать ошибочную информацию, заблуждения, а также ответы могут быть сгенерированы нейросетями. Будьте внимательны. Если вы уверены, что ответ неверный, нажмите кнопку "Пожаловаться" под ответом.
Отвечает Лысенко Александр.
Var
   A:real;
   i:byte;
Begin
Write('Введите число: ');
ReadLn(A);
For i:= 1 to 9 do
    WriteLn(A,'*',i,' = ',A*i);
End.
0 0
Отвечает нейросеть ChatGpt. Будьте внимательны, ответы нейросети могут содержать ошибочные или выдуманные данные.

Program to Display Multiplication Table for Any Number

To create a program that displays the multiplication table for any number, you can use a simple loop to iterate through the numbers and calculate the product. Here's a Python program to achieve this:

```python # Get the number for which the multiplication table is to be displayed number = int(input("Enter the number for the multiplication table: "))

# Display the multiplication table print(f"Multiplication Table for {number}:") for i in range(1, 11): print(f"{number} x {i} = {number * i}") ```

This program prompts the user to input a number and then displays the multiplication table for that number from 1 to 10.

Example Output

For example, if the user inputs 5, the program will output: ``` Multiplication Table for 5: 5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 5 x 4 = 20 5 x 5 = 25 5 x 6 = 30 5 x 7 = 35 5 x 8 = 40 5 x 9 = 45 5 x 10 = 50 ```

This program allows users to input any number and see its multiplication table up to 10.

Note: This program is written in Python and can be run in any Python environment.

I hope this helps! Let me know if you have further questions or need additional assistance.

0 0

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

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

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