Created
April 1, 2018 10:37
-
-
Save RehmanaliMomin/d766b1336eea862f97f291ef31c9d91c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Average{ | |
public static void main(String[] args){ | |
System.out.println(average(57269,6251); | |
} | |
static int average(int a,int b){ | |
a=a>>1; | |
b=b>>1; | |
return a+b; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment