Last active
May 1, 2018 02:36
-
-
Save hocarm/5e1a6fd1636292e673cf7a43a5514d3b to your computer and use it in GitHub Desktop.
This file contains 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
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