In your first post, some days ago, you were told multiple times to read How to get the best out of this Forum and post your code into code tags, as it's instructed there.
Here you are again without the code tags. People may start to think that you're a bad listener...
The code below does the same of yours, but it's in code tags and with indentation. See how it looks better to read:
// C++ code
void setup() {
Serial.begin(9600);
pinMode(A4,INPUT);
for (int i = 0; i < 10; ++i ) {
int sensor = analogRead(A4);
Serial.println(sensor);
delay(500);
}
}
void loop(){}
I increased the delay in order for you to see the difference in the values while you give your photo resistor some different light levels (try your cell phone flashlight).
If it keeps giving you just 6, you probably have wrong wiring.