unia c

#include <stdio.h>

// Function to find the sum of two numbers
int add(int a, int b) {
    return a + b;
}

int main() {
    // Declare variables
    int num1, num2, result;

    // Prompt the user to enter the first number
    printf("Enter the first number: ");
    scanf("%d", &num1);

    // Prompt the user to enter the second number
    printf("Enter the second number: ");
    scanf("%d", &num2);

    // Call the add function and store the result
    result = add(num1, num2);

    // Display the result
    printf("The sum of %d and %d is: %d\n", num1, num2, result);

    // Return 0 to indicate successful execution
    return 0;
}