Created
February 12, 2015 02:00
-
-
Save GnsP/d7e8490609d47c9a4af7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(){ | |
int a, b, c; // a, b and c are two integers | |
scanf("%d %d", &a, &b); // read a and b from user input | |
c = a + b; | |
printf("%d \n", c); // print the value of c | |
return 0; // 0 is returned to indicate that | |
// the program exited without errors | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment