Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. // 101.cpp : 定義主控台應用程式的進入點。
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <stdlib.h>
  6.  
  7. int _tmain(int argc, _TCHAR* argv[])
  8. {
  9.     int a , b ,c;
  10.    
  11.     scanf("%d%d",&a,&b);
  12.    
  13.     c=a*b;
  14.    
  15.     if(c>=0)printf("%d",b*a);
  16.    
  17.     else printf("%d",b+a);
  18.    
  19.    
  20.     system("pause");
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement