Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <limits.h>
- int main()
- {
- // const int n = 1e6 +9;
- // const int m = 1e6 +9;
- int A[UINT_MAX];
- int B[UINT_MAX];
- //A is the array of the well contains the diameter values in top-down order
- //B is the array of the entered disks contains the diameter of disks values in dropping order
- //N the well disks number
- //M the rings number
- int i=0, j=0, N, M;
- printf("Please enter the Well Deep in meters : ");
- scanf("%d",&N);
- printf("Please enter the number of the Disks dropped : ");
- scanf("%d",&M);
- printf("Please assign the diameter of each concrete rings respectively in top-down order : ");
- for (i=0; i<N; ++i)
- Scanf ("%d",&A[i]);
- printf("Please assign the diameter of each concrete Disk respectively in they are to be dropped : ");
- for (j=0; j<M; ++j)
- Scanf ("%d",&B[j]);
- int r,s;
- for(r=0; r<N ; ++r) printf("%d",A[r]);
- for(s=0; s<N ; ++s) printf("%d",B[s]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement