code problem ?

Please need your help
void setup() {
// initialize the serial communications:
Serial.begin(9600);
}
{
// Provide ground and power by using the analog inputs as normal digital pins.
// This makes it possible to directly connect the breakout board to the
// Arduino. If you use the normal 5V and GND pins on the Arduino,
// you can remove these lines.
pinMode(groundpin, OUTPUT);
pinMode(powerpin, OUTPUT);
digitalWrite(groundpin, LOW);
digitalWrite(powerpin, HIGH);
}

void loop() {
// print the sensor values:
Serial.print(analogRead(xpin));
// print a tab between values:
Serial.print("\t");
Serial.print(analogRead(ypin));
// print a tab between values:
Serial.print("\t");
Serial.print(analogRead(zpin));
Serial.println();
// delay before next reading:
delay(100);
}

@sanaid

TOPIC SPLIT
DO NOT HIJACK / NECRO POST !

Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

It looks like you are attempting to read a gyroscope (or similar) but you have to say what you are doing, with what circuit and sensor, and where you need help.

void setup() {
  // initialize the serial communications:
  Serial.begin(9600);
}

That '}' matches the '{' at the start of the function so it marks the end of the function. You are trying to put code outside a function. If you want the new code to be part of 'setup()' you have to put it inside the function (before the ending '}').