Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions betty.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include <stdio.h>

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;
}