write a program to assign A for 10 and B for 15. find their total and average value and display in separate line with appropriate message
Answers
Answered by
1
import java.util.*;
public class a
{
public static void main (String args [])
{
int a = 10 , b = 15 ;
int Total = a+b;
int Average = Total/2;
System.out.println("Total : "+Total);
System.out.println("Average : "+Average);
}
}
Similar questions