Write a Program to add two integers

 

#include <stdio.h>

int main() 

{    

    int num1, num2, sum;

    printf("Enter two integers: ");

    scanf("%d %d", &num1, &num2);

    sum = num1 + num2;      

    printf("%d + %d = %d", num1, num2, sum);

    return 0;

}










Post a Comment

0 Comments