Files
courses/2023_CS50X/c/Source/calculator0.c
T
2024-11-14 13:11:04 +01:00

17 lines
259 B
C

// Addition with int, allows for overflow
#include <cs50.h>
#include <stdio.h>
int main(void)
{
// Prompt user for x
int x = get_int("x: ");
// Prompt user for y
int y = get_int("y: ");
// Perform addition
printf("%i\n", x + y);
}