saykotislam

201-15-13993_7

Feb 21st, 2021
53
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package lab;
  2.  
  3. import java.util.Scanner;
  4.  
  5. class Average {
  6.     int a,b,c;
  7.     double av;
  8.     void avrg(){
  9.         Scanner input= new Scanner(System.in);
  10.             a=input.nextInt();
  11.             b=input.nextInt();
  12.             c=input.nextInt();
  13.             av=(a+b+c)/3;
  14.            
  15.             System.out.println("Average: "+av);
  16.     }
  17. }
  18.  
  19. public class objav {
  20.     public static void main(String[] args) {
  21.         Average ar= new Average();
  22.         ar.avrg();
  23.     }
  24. }
  25.  
RAW Paste Data