Last active
May 1, 2018 02:46
-
-
Save hocarm/7ac6fe725a97ba6b2347246cbbaa5cb7 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
int main(void) { | |
unsigned long side; // Chiều dài của phòng đơn vị mét | |
unsigned long area; // Diện tích phòng đơn vị mét vuông | |
UART_Init(); // gọi subroutine để init uart | |
printf("This program calculates areas of square-shaped rooms\n"); | |
for(side = 1; side < 50; side = side+1){ | |
area = Calc_Area(side); | |
printf("\nArea of the room with side of %ld m is %ld sqr m\n",side,area); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment