Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.30 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4.  
  5. char a[3][20];
  6. char noob[3][200];
  7.  
  8. int b; //IS IT FOR
  9. int d;
  10. int l;
  11. int e;
  12.  
  13. int o;
  14.  
  15. main()
  16. {
  17.  for(b=0;b<3;b++){
  18.                 char c[20] = "test";
  19.                 char x[200] = "1";
  20.                
  21.                 printf("Enter Name:\n");
  22.                 printf("\nEnter Quantity:\n");
  23.                
  24.                 for(d=0;d<20;d++){
  25.                         a[b][d] = c[d];
  26.                 }              
  27.                
  28.                 for(e=0;e<200;e++){
  29.                         noob[b][e] = x[e];
  30.                 }
  31.  
  32. }
  33.         printf("=================================================================\n");
  34.         for(b=0;b<3;b++){
  35.                 printf("%d                      ", b+1); // 1 2 3
  36.                
  37.                 for(d=0;d<20;d++){
  38.                         printf("%c",a[b][d]); // name
  39.                 }
  40.                
  41.                 printf("                        ");
  42.                
  43.                 for(l=0;l<200;l++){
  44.                         printf("%c",noob[b][l]); //quantity
  45.                 }
  46.                 printf("\n");          
  47.                
  48.                         //----------------
  49.         }
  50.        
  51.         printf("=================================================================");
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement