Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4.  
  5. {
  6.  
  7. int n,first,last,sum;
  8. scanf("%d",&n);
  9. last = n%10;
  10. first = n/10;
  11. sum = first + last;
  12. printf("%d",sum);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement