Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main ()
- {
- int bn, i, blk[100], fn, file[100];
- printf("Enter the number of blocks: ");
- scanf("%d",&bn);
- printf("\nEnter the block size of every blocks: \n");
- for(i=1; i<=bn; i++)
- {
- printf("Block %d : ", i);
- scanf("%d", &blk[i]);
- }
- printf("Enter the number of files: ");
- scanf("%d",&fn);
- printf("\nEnter the file size of every files: \n");
- for(i=1; i<=fn; i++)
- {
- printf("\n File %d : ", i);
- scanf("%d", &file[i]);
- }
- if(file[i]<=block[i])
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement