Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 101.cpp : 定義主控台應用程式的進入點。
- //
- #include "stdafx.h"
- #include <stdlib.h>
- int _tmain(int argc, _TCHAR* argv[])
- {
- int a , b ,c;
- scanf("%d%d",&a,&b);
- c=a*b;
- if(c>=0)printf("%d",b*a);
- else printf("%d",b+a);
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement