Computer Science, asked by donbro11, 4 months ago

c program pls help.​

Attachments:

Answers

Answered by mjeystech
0

Explanation:

  1. #include<stdio.h>
  2. #include<conio.h>
  3. void main(){
  4. float arr[1][15], val=0, avg=0;
  5. for(int i=0; i<1; i++){
  6. for(int j=0; j<15; j++){
  7. scanf("%f", &arr[i][j]);
  8. }
  9. }
  10. for(int i=0; i<1; i++){
  11. for(int j=0; j<15; j++){
  12. printf("%f", arr[i][j]);
  13. }
  14. }
  15. for(int i=0; i<1; i++){
  16. for(int j=0; j<15; j++){
  17. val+= arr[i][j];
  18. }
  19. }
  20. avg = val/15;
  21. printf("The average of the given inputs is : %f", avg);
  22. }

Similar questions