sum_func

ফাংশন তৈরি করে দুইটি সংখ্যা যোগ করার সি প্রোগ্রাম লিখ।

Sum of Two Numbers
#include <stdio.h>
int x, y, sum;
void add(int x, int y)
{
    sum = x + y;
    printf("sum = %d \n", sum);
}
int main()
{
    int a, b;
    printf("input the value of a and b : \n");
    scanf("%d%d", &a, &b);
    add(a, b);
    return 0;
}
input the value of a and b :