Answers for "how to use addition in c"

C
2

how to use addition in c

#include <stdio.h>
int main() {    

    int number1, number2, sum;
    
    printf("Enter two integers: ");
    scanf("%d %d", &number1, &number2);

    // calculating sum
    sum = number1 + number2;      
    
    printf("%d + %d = %d", number1, number2, sum);
    return 0;
}
Posted by: Guest on November-09-2020

Code answers related to "C"

Browse Popular Code Answers by Language