x用简单赋值,y用复合赋值,后面别忘加分号就ok了
#include <stdio.h>
int main()
{
int x = 10;
int y = 10;
x = x * 2;
y *= 2;
printf("x=%d\n", x);
printf("y=%d\n", y);
return 0;
}