Free help with homework

Why join Brainly?

  • ask questions about your assignment
  • get answers with explanations
  • find similar questions

write a program to store 10 numbers in array and find out sum, maximum and average of these 10 numbers.

Mention which programming language you want to use...I can help you out with Cobol , Java, C, C++ and Python.


I will just give you the source code in C...since you havent mentioned which programming language you want it in...

#include <stdio.h>
#include <ctype.h>
int main(){ 
   int i;   
int number[10];   
int n;   
int x;   
int j;   
int temp; 
 printf("Type number of elements:"); 
  printf("Enter element %d:",i+1); 
   for(i=0;i = n-i;i++)   {     
for(j=0;j<n-1-i;j++)             {                           
  if (j >j+1)      {       
 temp = j;        j = j+1;       
number[j+1]= temp;       
 x++;}}   }     
1 2 1
The Brain
  • The Brain
  • Helper
Not sure about the answer?
Learn more with Brainly!
Having trouble with your homework?
Get free help!
  • 80% of questions are answered in under 10 minutes
  • Answers come with explanations, so that you can learn
  • Answer quality is ensured by our experts