#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();
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;
#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();
}