write a program in java to input five numbers and find and print their sum and average
Answers
Answered by
4
Answer:
Write a Java program to input 5 numbers from keyboard and find their sum and average
import java.util.Scanner;
public class JavaExcercise {
public static void main(String[] args)
{
int i,numbers=0,sum=0;
double avg;
{
println("Enter any 5 numbers : ");
Similar questions