#include <stdio.h>
int main()
{
int a = 20;
int score = a + 100;
printf("%d\n", score);//score = 120
{
int score = 50;
{
score = 10;
printf("%d\n", score);//score = 10
}
a = 10;
}
{
score = a + 250;//a = 10,赋值score
int score = 30;
printf("%d", score);//score = 30
}
printf("%d\n", score);//score = 260
return 0;
}
|
|