C Language Structure Code
Budget: $10 – $30 USD
I have some of the code that is needed however I am not too sure if I am doing it correctly. I will include below!
#include <stdio.h>
struct merch
{
int descrip;
int ItemNum;
int price;
int MemGb;
};
struct customer
{
char name[20];
int clientnumber;
};
int main()
{
printf("Welcome to the Apple Store! \n");
printf("Here is the list of our current merchandise: \n");
// display merch list using function
printf("Would you like to buy a new phone? \n");
printf("1. Yes \n2. No \n");
scanf("%s",custAns)
if (custAns, "1") ==0){
printf("Please enter customer number: \n");
scanf("%s", clientnumber);
int customer = 0;
for
}
}
#include <stdio.h>
struct merch
{
int descrip;
int ItemNum;
int price;
int MemGb;
};
struct customer
{
char name[20];
int clientnumber;
};
int main()
{
printf("Welcome to the Apple Store! \n");
printf("Here is the list of our current merchandise: \n");
// display merch list using function
printf("Would you like to buy a new phone? \n");
printf("1. Yes \n2. No \n");
scanf("%s",custAns)
if (custAns, "1") ==0){
printf("Please enter customer number: \n");
scanf("%s", clientnumber);
int customer = 0;
for
}
}