Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Q6-Given three integers your task is to calculate the maximum integer among the given integers.
- Ans-static int MaxInteger(int a ,int b, int c){
- //Enter your code here
- if(a >= b && a >=c) {
- return a;
- }
- if(b >= a && b >=c) {
- return b;
- }
- else{
- return c;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement