Initial commit with cleaned history
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// 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);
|
||||
}
|
||||
Reference in New Issue
Block a user