Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- int _tmain(int argc, _TCHAR* argv[])
- {
- int a, b;
- printf("請輸入一三位數且由1~9所組成\n");
- scanf("%d", &a);
- b = (a%10)*100 + (a/10)%10 * 10 + a/100;
- printf("%d\n%d\n", b, a+b);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement