题解 | #长方形的周长#
长方形的周长
http://www.nowcoder.com/practice/f8921f56e2d74d0abc587592c3062639
直接返回即可
//import "fmt"
/**
* 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
*
*
* @param a int整型 长方形的长
* @param b int整型 长方形的宽
* @return int整型
*/
func perimeter( a int , b int ) int {
// write code here。
return 2*(a+b)
}