#include <iostream>
using namespace std;
int main()
{
for(double i = 1; i <=25; ++i)
{
if(((int)i-1)%5==0)
{
cout << endl;
}
cout << "Earth - " << i << ", moon - " << i*0.17 << endl;
}
cin.get();
}
14 задание#include <iostream>
using namespace std;
int main()
{
double num,sum=0;
for(int i=0; i < 5;++i)
{
cout << "Enter number #" << i+1 << " -> ";
cin >> num;
sum+=num;
}
cout << "Average: " << sum/5 << endl;
cin.get();
cin.get();
}
var a,b,c,d:integer;
begin
writeln('Введите первое число');readln(a);
writeln('Введите второе число');readln(b);
writeln('Введите третье число');readln(c);
if(a>7) then d:=d+1;
if(b>7) then d:=d+1;
if(c>7) then d:=d+1;
writeln('К-во чисел > 7: ',d);
end.