Question: Given an array of temperatures - 76, 81, 55, 84, 70, 82, 77, 88, 90, 78. Using a for loop to iterate through the

Given an array of temperatures - 76, 81, 55, 84, 70, 82, 77, 88, 90, 78. Using a for loop to iterate through the array, find the average of all the temperatures and print only their average in this format: "The average temperature is ". public class soll { public static void main(String[] args) { int temps[] = {76, 81, 55, 84, 70, 82, 77, 88, 90, 78}; } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
