1033: 5.1:if 格式一:两个数,若前者大且其一是偶数,交换

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:1 Solved:498

Description

 键盘输入两个整数给变量a,b,若前者大,并且其中任意一个数是偶数,则交换它们,否则,不交换。最后输出ab的值。
使用if语句的第一种格式编程,不允许用其他格式,也不允许嵌套 (即:代码中不允许出现else)
程序已有框架如下,你只需把所缺代码填写到考试页面的文本框中即可,已有代码不需要提交
#include<stdio.h>
int main()
{
   int a,b,t;
   scanf("%d,%d",&a,&b);
   /*********************************/
     //将此处所缺代码提交到考试页面
   /*********************************/
   printf("a=%d,b=%d\n",a,b);
   return 0;
}

Input

两个整数

Output

输出a,b最后的值

Sample Input Copy

3,2

Sample Output Copy

a=2,b=3

Source/Category