Advertisement
pirooted

Untitled

Jan 27th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.47 KB | None | 0 0
  1. #include <stdio.h>
  2. //Place holders to use later
  3. int numb1;
  4. int numb2;
  5.  
  6. int main (void) {
  7.     //Asking the use what is the quotes.
  8.     printf("add two numbers:");
  9.    
  10.     /*The scanf function allows you to accept input from standard in.
  11.     //Numb1, Numb2 are varibles that are given value to the user. */
  12.     scanf("%d %d", &numb1, &numb2);
  13.    
  14.     //Saving the value into 2 + 2 into result.
  15.     int result = numb1 + numb2;
  16.  
  17.     //Then print the result to the screen.
  18.     printf("%d", result);
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement