提交时间:2022-11-27 15:05:49
运行 ID: 6158
#include <iostream> using namespace std; int main(){ float s=0; float a[10]={28.9,32.7,45.6,78,35,86.2,27.8,43,56,65}; int b[10]; for(int i=0; i<10; i++){ cin>>b[i]; } for(int i=0; i<10; i++){ s=s+a[i]*b[i]; } cout<<s; }