diff --git a/add.c b/add.c new file mode 100644 index 0000000..7aa858b --- /dev/null +++ b/add.c @@ -0,0 +1,26 @@ +#include + +int main() +{ + // Declare variables + int num1,num2,s; + + + + printf("Enter two integers: "); + + scanf("%d %d", &num1, &num2); + + + + // calculate the sum of two numbers + + s = num1 + num2; + + + + // Print the result + + printf("%d + %d = %d", num1, num2, s); + +}