单项选择题

int a=5;System.out.println(a%2==1?(a+1)/2:a/2)其输出结果是多少?()

A.1
B.2
C.2.5
D.3