Hi, I just made a dumb program to test my skills. My options aren't registering correctly, can anyone spot a mistake in my code? Thank you!
Code:#include <stdio.h> int main() { int x; printf("This is my first real program. Please select an option below: \n"); printf("1. Enter age\n"); printf("2. Enter heigt\n"); printf("3. Enter birth year\n"); printf("4. Enter salary\n"); scanf("&d",&x); if(x == 1) { printf("Please enter your age: \n"); } else if(x == 2) { printf("Please enter your height: \n"); } else if(x == 3) { printf("Please enter your birth year: \n"); } else if(x == 4) { printf("Please enter your salary: \n"); } else printf("Invalid option! Try again. \n"); return(0); }