diff --git a/betty.c b/betty.c new file mode 100644 index 0000000..af00a50 --- /dev/null +++ b/betty.c @@ -0,0 +1,21 @@ +#include + +int main() +{ + int A, B, sum = 0; + + // Ask user to enter the two numbers + printf("Enter three numbers A and B : \n"); + + // Read two numbers from the user || A = 2, B = 3 + scanf("%d%d", &A, &B, &c); + + // Calculate the addition of A and B + // using '+' operator + sum = A + B + c; + + // Print the sum + printf("add of A and B is: %d", sum); + + return 0; +}