Files
CS50---Harvard/src1/calculator1.c
T
2026-05-28 10:16:10 +00:00

17 lines
276 B
C

// Addition with int, without third variable
#include <cs50.h>
#include <stdio.h>
int main(void)
{
// Prompt user for x
int x = get_int("What's x? ");
// Prompt user for y
int y = get_int("What's y? ");
// Perform addition
printf("%i\n", x + y);
}