#include <stdio.h>
// Function to calculate the sum of two integers
int add(int a, int b) {
return a + b;
}
// Function to calculate the difference between two integers
int subtract(int a, int b) {
return a - b;
}
// Function to calculate the product of two integers
int multiply(int a, int b) {
return a * b;
}
// Function to calculate the quotient of two integers
float divide(int a, int b) {
// Check for division by zero
if (b == 0) {
printf("Error: Division by zero\n");
return 0;
}
return (float)a / b;
}
int main() {
// Declare and initialize two integers
int num1 = 10, num2 = 5;
// Call the add function and print the result
printf("Sum: %d\n", add(num1, num2));
// Call the subtract function and print the result
printf("Difference: %d\n", subtract(num1, num2));
// Call the multiply function and print the result
printf("Product: %d\n", multiply(num1, num2));
// Call the divide function and print the result
printf("Quotient: %.2f\n", divide(num1, num2));
return 0;
}