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


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

A:real;
i:byte;
Begin
Write('Введите число: ');
ReadLn(A);
For i:= 1 to 9 do
WriteLn(A,'*',i,' = ',A*i);
End.



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.


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







Последние заданные вопросы в категории Информатика
-
Математика
-
Литература
-
Алгебра
-
Русский язык
-
Геометрия
-
Английский язык
-
Химия
-
Физика
-
Биология
-
Другие предметы
-
История
-
Обществознание
-
Окружающий мир
-
География
-
Українська мова
-
Информатика
-
Українська література
-
Қазақ тiлi
-
Экономика
-
Музыка
-
Право
-
Беларуская мова
-
Французский язык
-
Немецкий язык
-
МХК
-
ОБЖ
-
Психология
-
Физкультура и спорт
-
Астрономия
-
Кыргыз тили
-
Оʻzbek tili