1#include <stdio.h>
2int main() {
3
4 int number1, number2, sum;
5
6 printf("Enter two integers: ");
7 scanf("%d %d", &number1, &number2);
8
9 // calculating sum
10 sum = number1 + number2;
11
12 printf("%d + %d = %d", number1, number2, sum);
13 return 0;
14}
15
1#include <stdio.h>
2int main() {
3 int sum_tot = 0;
4 int num_1, num_2;
5 printf("Please, Enter First integer: ");
6 scanf("%d", &num_1);
7 printf("\nNow Please, Enter Second integer: ");
8 scanf("%d", &num_2);
9
10 sum_tot = num_1 + num_2;
11
12 printf("\n%d + %d = %d", num_1, num_2, sum_tot);
13 return 0;
14}
1#include<stdio.h>
2int main() {
3int a, b, sum;
4printf("\nEnter two no: ");
5scanf("%d %d", &a, &b);
6sum = a + b;
7printf("Sum : %d", sum);
8return(0);
1#include <stdio.h>int main(){ int a, b, sum;printf("Enter two integers");scanf("%d %d", &a, &b);sum = a + b; printf("%d + %d = %d", a, b, sum);return 0;}