Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- char a[3][20];
- char noob[3][200];
- int b; //IS IT FOR
- int d;
- int l;
- int e;
- void main(){
- for(b=0;b<3;b++){
- char c[20] = "";
- char x[200] = "";
- printf("Enter Name:\n");
- gets(c);
- printf("\nEnter Quantity:\n");
- gets(x);
- for(d=0;d<20;d++){
- a[b][d] = c[d];
- }
- for(e=0;e<200;e++){
- noob[b][e] = x[e];
- }
- }
- printf("=================================================================\n");
- for(b=0;b<3;b++){
- printf("%d ", b+1); // 1 2 3
- for(d=0;d<strlen(a[b]);d++){
- printf("%c",a[b][d]); // name
- }
- printf(" ");
- for(l=0;l<strlen(noob[b]);l++){
- printf("%c",noob[b][l]); //quantity
- }
- printf("\n");
- //----------------
- }
- printf("=================================================================");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement