Last active
October 2, 2019 00:09
-
-
Save 100daysofdevops/3add4a94797715004bc4db068ff5bc7b 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
| package main | |
| import "fmt" | |
| func main() { | |
| var maxval int | |
| maxval=maxfun(120,220) | |
| fmt.Println("Max value is: ", maxval) | |
| } | |
| func maxfun(num1,num2 int) int { | |
| if (num1 > num2){ | |
| return num1 | |
| }else { | |
| return num2 | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment