Skip to content

Instantly share code, notes, and snippets.

@hocarm
Created December 24, 2017 16:46
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/c32b76dc8bea6b39fb1a367efa59331a to your computer and use it in GitHub Desktop.
Save hocarm/c32b76dc8bea6b39fb1a367efa59331a to your computer and use it in GitHub Desktop.
//**** 0. Documentation Section
// This program calculates the area of square shaped rooms
// Author: Ramesh Yerraballi & Jon Valvano
// Date: 6/28/2013
//
// 1. Pre-processor Directives Section
#include <stdio.h> // Diamond braces for sys lib: Standard I/O
#include "uart.h" // Quotes for user lib: UART lib
// 2. Global Declarations section
// 3. Subroutines Section
// MAIN: Mandatory routine for a C program to be executable
int main(void) {
UART_Init(); // call subroutine to initialize the uart
printf("This program calculates areas of square-shaped rooms\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment