Answers for "programme to add two numbers"

C
0

programme to add two numbers

#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 October-07-2021

Code answers related to "programme to add two numbers"

Code answers related to "C"

Browse Popular Code Answers by Language