Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <inttypes.h>
  3.  
  4. int main(void) {
  5.     int16_t a, b, sum;
  6.     printf("enter a number:\n");
  7.     scanf("%hhd", &a);
  8.     printf("enter another number:\n");
  9.     scanf("%hhd", &b);
  10.     sum = a + b;
  11.     printf("These numbers have the sum of %d", sum);
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement