Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- char company[30];
- char style[30];
- float weight;
- int i,num;
- printf("\n Cristian Flores\n Homework 8\n Files\n");
- printf("\n El Paso tennis shop\n");
- printf("Enter number of tennis rackets. : ");
- scanf("%d",&num);
- FILE *fptr;
- fptr=(fopen(""));
- for(i=0;i<num;i++)
- printf("\nNumber of rackets is %d",num);
- {
- printf("Enter company that name. : ");
- scanf("%s",&company);
- printf("Enter the style. : ");
- scanf("%s",&style);
- printf("Enter weight. : ");
- scanf("%f",&weight);
- fprintf(fptr,"\nCompany :%s\nStyle :%s\nWeight :%f",company,style,weight);
- }
- fclose(fptr);
- printf("");
- FILE *fp;
- fp=(fopen(""));
- while(())
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement