Calculator Documentation 1.1
A simple calculator program with basic operations.
 
Loading...
Searching...
No Matches
calculator.c File Reference
#include "calculator.h"

Functions

int add (int a, int b)
 Adds two numbers.
 
int subtract (int a, int b)
 Subtracts two numbers.
 

Function Documentation

◆ add()

int add ( int a,
int b )

Adds two numbers.

Parameters
aThe first operand.
bThe second operand.
Returns
The sum of a and b.

◆ subtract()

int subtract ( int a,
int b )

Subtracts two numbers.

Parameters
aThe first operand.
bThe second operand.
Returns
The result of subtracting b from a.