Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n,first,last,sum;
- scanf("%d",&n);
- last = n%10;
- first = n/10;
- sum = first + last;
- printf("%d",sum);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement