Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- //Place holders to use later
- int numb1;
- int numb2;
- int main (void) {
- //Asking the use what is the quotes.
- printf("add two numbers:");
- /*The scanf function allows you to accept input from standard in.
- //Numb1, Numb2 are varibles that are given value to the user. */
- scanf("%d %d", &numb1, &numb2);
- //Saving the value into 2 + 2 into result.
- int result = numb1 + numb2;
- //Then print the result to the screen.
- printf("%d", result);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement