/*
Documentation Section
Project: Add_Sub
Author: the Bored Engineer
*/
// Linking Section
#include <stdio.h> // include stdio.h library
//Definition Section
#define Num1 23 //Defining a numeric constant
#define Num2 12 //Defining a numeric constant
//Global Decleration Section
int Sum = 0; //Declaring a global variable to store the addition result
int Sub = 0; //Declaring a global variable to store the subtraction result
void addition(void); //Decleration of the addition function
void subtraction(void); //Decleration of the subtraction function
//Main Section
int main() //main function
{
addition(); //calling the addition function from Main
subtraction(); //calling the subtraction function from Main
return 0; //return 0 to the Operating Sysytem
}
//Sub-Program Section
void addition(void)
{
Sum = Num1 + Num2;
printf("Addition:%d\n", Sum);
}
void subtraction(void)
{
Sub = Num1 - Num2;
printf("Subtraction:%d\n", Sub);
}