python版本:
n =10
nums=[]
for i in range(n):
nums.append(input(‘请输入一个整数:’))
print(sum(nums)/n)
print(min(nums))
c++版本:
#include <iostream>
int main()
{double sum=0;
double x;
double min=0;
for(int i=0;i<10;i++)
{std::cin>>x;
if(min>x)min=x;
sum+=x;}
std::cout<<sum/10<<‘\n’;
std::cout<<min<<std::endl;}