Niharika IT Solution

BOOK /NOTES/NEWS

Write a C program to add two number .

 #include <stdio.h>

int main() {    


    int number1, number2, sum;

    

    printf("Enter two integers: ");

    scanf("%d %d", &number1, &number2);


    // calculate the sum

    sum = number1 + number2;      

    

    printf("%d + %d = %d", number1, number2, sum);

    return 0;

}