Computer Science, asked by sumana7, 1 year ago

write a programme to find sum and avg of 10 numbers

Answers

Answered by abhisheksp
2

Hello,

C Code:

         #include <stdio.h>
        void main()
 { 
      int i,n,sum=0;
      float avg;
      printf("Input the 10 numbers : \n");
      for (i=1;i<=10;i++)
  {
      printf("Number-%d :",i);
      scanf("%d",&n);
     sum +=n;
  }
      avg=sum/10.0;
     printf("The sum of 10 no is : %d\nThe Average is : %f\n",sum,avg);
}

So,my friend this was the programme format 
hope i helped u 
plz mark as Brainliest

abhisheksp: was that helpul to u
abhisheksp: *helpful
sumana7: I don't want in loops I want normal programme
sumana7: please
fathermother6273: that cannot be.
fathermother6273: loop is an important thing in comp. programming
abhisheksp: Yeah!!!
abhisheksp: plz sme body mrk as brainliest
abhisheksp: plz mark as Brainliest
Answered by Arinkishore
2
Consult the attachment if its a java program
Attachments:
Similar questions