#include <stdio.h>

int sum(int a,int b);
int main() {
    int a,b;
    printf("enter first number\n");
    scanf("%d", &a);
    printf("enter second number\n");
    scanf("%d",&b);
    
    int s= sum(a,b);
    printf("sum is %d", s);
   
    return 0;
}

int sum (int a,int b) {
    return a + b;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: