Skip to content

Instantly share code, notes, and snippets.

@invasionofsmallcubes
Created September 2, 2020 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save invasionofsmallcubes/d0df0a7df28d59addd7c87f4d447e60d to your computer and use it in GitHub Desktop.
Save invasionofsmallcubes/d0df0a7df28d59addd7c87f4d447e60d to your computer and use it in GitHub Desktop.
main.c - lesson #1 - elementary programming
#include <stdio.h>
int main() {
int j;
int i;
printf("Tell i\n");
scanf("%d", &i);
printf("Tell j\n");
scanf("%d", &j);
int sum = i + j;
printf("Sum is %d", sum);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment