Skip to content

Commit

Permalink
Merge pull request #1253 from shreya9163/master
Browse files Browse the repository at this point in the history
Create add2int
  • Loading branch information
fineanmol authored Nov 2, 2021
2 parents e44a863 + 42af1d9 commit da7ecc5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions add2int
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#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;
}

0 comments on commit da7ecc5

Please sign in to comment.