单项选择题

下列程序段执行后的输出结果为( )。  int x=3;int y=10:  System.out.println(y%x):

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