Can someone please help me write a method >O<?

2009-08-09 11:05 pm
Completer the calculateAge() method. The method should subtract the yearBorn passed in as an int parameter, from 2009, and return the result.

回答 (1)

2009-08-09 11:23 pm
✔ 最佳答案
Here's the skeleton of a method/function in C/C++ and Java.

<return type> methodName ( type paramName ) {
//body
}

int calculateAge(int yearBorn) {
return (2009-yearBorn);
}


收錄日期: 2021-05-01 01:08:39
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20090809150533AABqmUN

檢視 Wayback Machine 備份