SHARE
TWEET

Test

MennaEmad69 Apr 21st, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <limits.h>
  4.  
  5.  
  6.  
  7. int main()
  8. {
  9.  
  10.   //  const int n = 1e6 +9;
  11.    // const int m = 1e6 +9;
  12.  
  13.  
  14.     int A[UINT_MAX];
  15.     int B[UINT_MAX];
  16.  
  17.     //A is the array of the well contains the diameter values in top-down order
  18.     //B is the array of the entered disks contains the diameter of disks values in dropping order
  19.     //N the well disks number
  20.     //M the rings number
  21.  
  22.     int i=0, j=0, N, M;
  23.  
  24.     printf("Please enter the Well Deep in meters : ");
  25.     scanf("%d",&N);
  26.  
  27.     printf("Please enter the number of the Disks dropped : ");
  28.     scanf("%d",&M);
  29.  
  30.     printf("Please assign the diameter of each concrete rings respectively in top-down order : ");
  31.     for (i=0; i<N; ++i)
  32.     Scanf ("%d",&A[i]);
  33.  
  34.     printf("Please assign the diameter of each concrete Disk respectively in they are to be dropped : ");
  35.     for (j=0; j<M; ++j)
  36.     Scanf ("%d",&B[j]);
  37.  
  38.     int r,s;
  39.     for(r=0; r<N ; ++r) printf("%d",A[r]);
  40.     for(s=0; s<N ; ++s) printf("%d",B[s]);
  41.  
  42.  
  43.  
  44.  
  45.     return 0;
  46. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top