#include<stdio.h>
#include<conio.h>
void add(int a, int b)
{
int k = a + b;
printf("Addition of Numbers is: %d", k);
}
void sub(int a, int b)
{
int k = a - b;
printf("\nSubtraction of Numbers is: %d", k);
}
void mul(int a, int b)
{
int k = a * b;
printf("\nMultiplication of Numbers is: %d", k);
}
void div(int a, int b)
{
if (b != 0)
{
int k = a / b;
printf("\nDivision of Numbers is: %d", k);
}
else
{
printf("\nError: Division by zero is not allowed.");
}
}
int main()
{
clrscr();
add(10, 20);
sub(20, 10);
mul(5, 5);
div(10, 2);
div(10, 0); // Example with division by zero
getch();
}