You have quite a few syntax errors. You should consult an introductory text book: they are really helpful! I have read half a dozen and I would rate myself quite low on the ~"C Skill Continuum"~
Anyways, we all started at the bottom. Here is an alternate version with a lot of comments:
#include <stdio.h> /* you need a hash sign to include libraries...! */
#include <string.h> /* i use this library to copy input rather than loop */
int main() { // main does not take an argument
struct part_containing {
int part_number; // what is i for? I removed it
char part_name[25]; // do the null later, this is not the time!
};
struct part_containing name; // only declare the struct, not its variables
// p.s. name is an awful name-choice :P
char input[25]; // make a local var for input
puts("Enter part name:\n"); // prompt user for input
scanf("%s", input); // capture local var
strcpy(name.part_name, input); // copy it into the struct
name.part_name[25] = '\0'; // null just to be sure!
puts("Enter number:\n"); // same for the number now
scanf("%i", &name.part_number); // notice the syntax: &name.part_number...!
printf("%s and %i", name.part_name, name.part_number);
// simple error check
// did we get the expected input? It can be helpful to check in test runs!
return 0;
}
It does not answer all of the questions in your assignment, but it should be enough to get you started.
Hopefully this helps! If you work on it and have more questions then ask!