The joy of functions is that they can take arguments. You want to perform the same set of operations on multiple analog input pins so you could put everything in one function:
void processPin( int inputNumber, int pinNumber) {
int sensorValue = analogRead(pinNumber);
int percent = map(sensorValue, 1023, 465, 0, 100);
Serial.print("\n\nAnalog Value ")
Serial.print(inputNumber);
Serial.print(": ");
Serial.print(sensorValue);
Serial.print("\nPercent: ");
Serial.print(percent);
Serial.print("%");
}
Thank you both for the response- and especially the explanation's.
I am extremely green (actool is about the only thing i've ever really messed with much, similar kinda but not really) I'm trying to learn as I go on a project