
Подсчитать сумму четных, не делящихся без остатка на 8 чисел от 5 до 75.По Паскалю.Пж очень
надо,заранее благодарю:*

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

begin
for i:=5 to 75 do
if i mod 8 <> 0 then s+=i;
writeln(s);
end.



Calculating the Sum of Even Numbers Not Divisible by 8 from 5 to 75
To calculate the sum of even numbers that are not divisible by 8 from 5 to 75, we can follow these steps:
1. Identify the even numbers between 5 and 75. 2. Exclude the numbers that are divisible by 8. 3. Calculate the sum of the remaining numbers.
Let's go through these steps in detail.
Step 1: Identifying the Even Numbers between 5 and 75 The even numbers between 5 and 75 are: 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, and 74.
Step 2: Excluding Numbers Divisible by 8 We need to exclude the numbers that are divisible by 8. From the list above, the numbers divisible by 8 are: 8, 16, 24, 32, 40, 48, 56, 64, and 72.
Step 3: Calculating the Sum of the Remaining Numbers To calculate the sum of the remaining numbers, we add up all the even numbers between 5 and 75 and then subtract the sum of the numbers divisible by 8.
The sum of the even numbers between 5 and 75 is: 6 + 10 + 12 + 14 + 18 + 20 + 22 + 26 + 28 + 30 + 34 + 36 + 38 + 42 + 44 + 46 + 50 + 52 + 54 + 58 + 60 + 62 + 66 + 68 + 70 + 74 = 1300.
The sum of the numbers divisible by 8 is: 8 + 16 + 24 + 32 + 40 + 48 + 56 + 64 + 72 = 360.
Therefore, the sum of the even numbers not divisible by 8 from 5 to 75 is: 1300 - 360 = 940.
The sum of the even numbers not divisible by 8 from 5 to 75 is 940.
Please note that the information provided above is based on the calculations and exclusion criteria mentioned. If you have any further questions or need clarification, feel free to ask.


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