aidafarhadova
14.09.2022 03:29

Программа на Pascal. Выдаёт ошибку в стоке исправить var

a,b,c,s,e:integer;

d:real;

begin

readln:(a,b,c);

s:=a+b+c;

d:=(a+b+c)/3;

e:=a*b*c;

writeln ('Сумма чисел равна ', s);

writeln ('Произведение рано ', e);

writeln ('Среднее арифметическое равно ', d);

end.

Нажмите на рекламу ниже и сразу увидите ответ
↓
Популярные вопросы:
Ответ:
daniil12341234
13.01.2020 23:30

#include <iostream>

#include <set>

#include <vector>

using namespace std;

struct book{

   int name;

   int year;

   int k;

};

signed main() {

   ios_base::sync_with_stdio(0);

   cin.tie(0);

   cout.tie(0);

   vector<book> ans;

   int n;

   cin >> n;

   for(int i = 0; i < n; i++)

   {

       book bk;

       cin >> bk.name >> bk.year >> bk.k;

       if(bk.k >= 2 && bk.k <= 10)

           ans.push_back(bk);

   }

   for(auto i: ans)

       cout << i.name << " " << i.year << " " << i.k << "\n";

}

0,0(0 оценок)
Ответ:
crazzylolipoop
13.01.2020 23:30

#include <iostream>

#include <set>

#include <vector>

using namespace std;

struct book{

   int name;

   int year;

   int k;

};

signed main() {

   ios_base::sync_with_stdio(0);

   cin.tie(0);

   cout.tie(0);

   vector<book> ans;

   int n;

   cin >> n;

   for(int i = 0; i < n; i++)

   {

       book bk;

       cin >> bk.name >> bk.year >> bk.k;

       if(bk.k >= 2 && bk.k <= 10)

           ans.push_back(bk);

   }

   for(auto i: ans)

       cout << i.name << " " << i.year << " " << i.k << "\n";

}

0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота