Skip to content

Instantly share code, notes, and snippets.

@hocarm
Last active May 1, 2018 02:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hocarm/5e1a6fd1636292e673cf7a43a5514d3b to your computer and use it in GitHub Desktop.
Save hocarm/5e1a6fd1636292e673cf7a43a5514d3b to your computer and use it in GitHub Desktop.
unsigned long error;
// Tính diện tích căn phòng
// Input: kích thước căn phòng (unsigned long)
// Output: diện tích căn phòng (unsigned long)
// Notes: ...
unsigned long Calc_Area(unsigned long s) {
unsigned long result;
if(s <= 25){
result = s*s;
}else{
result = 0; // lỗi
error = error +1;
}
return(result);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment