Skip to content

Instantly share code, notes, and snippets.

@GnsP
Created February 12, 2015 02:00
Show Gist options
  • Save GnsP/d7e8490609d47c9a4af7 to your computer and use it in GitHub Desktop.
Save GnsP/d7e8490609d47c9a4af7 to your computer and use it in GitHub Desktop.
#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