/* add2.c -- Add two numbers and print them out together
with their sum
AUTHOR:
DATE:
*/
#include <stdio.h>
int main(void) {
int first, second;
printf("Enter two integers > ");
scanf("%d %d", &first, &second);
printf("The two numbers are: %d %d\n", first, second);
printf("Their sum is %d\n", first+second);
}
0 comments:
Post a Comment