Why won't this work?

Heres the code for you guys to look at so you can help me:

int val = 0;

void setup() {
}

void loop () {

val = analogRead(0);

Serial.print(val);

}