Please read the guide .
Please answer the question in detail
#include<iostream.h> int main() { int arr[10]; int i,sum=0; float avg; cout<<"enter 10 number"; for(i=0;i<10;i++) { cin>>arr[i]; } for(i=0;i<10;i++) { sum+=arr[i]; } avg=sum/10; cout<<"sum="<<sum<<endl; cout<<"average="<<avg; }
Doubtly is an online community for engineering students, offering:
Get the pro version for free by logging in!
5.7k questions
5.1k answers
108 comments
563 users