BUPT-homework/semester1/pset1/1-add.c

11 lines
217 B
C

#include <stdio.h>
int main(void) {
// initialization
int i1, i2;
// get input from user
scanf("%i %i", &i1, &i2);
// print answer!!
printf("The sum is %i and the difference is %i.", i1 + i2, i1 - i2);
}