/******************************************************************* ** Author: Your Name goes here! ** ** Course: CGS 2423-01 Spring 2006; MW 9:30 ** ** Professor: Giri Narasimhan ** ** Assignment: HW #1 Arithmetic & Simple I/O. DUE W 01/25 ** ******************************************************************** ** CERTIFICATION: I hereby certify that this work is my own and ** ** none of it is the work of any other person. ** ** ** ** ** ** ** ** -------< your signature >-------------- ** ******************************************************************** ** File: Add.c ** ** Comments: This program reads two integers and ** ** outputs their sum ** ********************************************************************/ #include int main() { int num1, num2, sum; printf("Enter first integer: \n"); scanf("%d", &num1); printf("Enter second integer: \n"); scanf("%d", &num2); sum = num1 + num2; printf("Sum of %d and %d = %d\n", num1, num2, sum); return(0); }