Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. #include <conio.h>
  2. #include <stdio.h>
  3. #include <math.h>
  4. #include <stdlib.h>
  5. #include <locale.h>
  6. void main (){
  7. setlocale (LC_ALL, ".ACP");
  8.  
  9.  
  10. float ALPHA_t1[B], ALPHA_t2, ALPHA_t3[B], V_1[B], V_2[B], V_3[B];
  11.  
  12. double A[][]
  13.  
  14. int E_1[B], E_2, E_3[B];
  15.  
  16. const int M=N=Q=3;
  17. const int B=4;
  18.  
  19.  
  20. printf ("Введите Е индексом (1)\n");
  21. for(i=0; i<B;i++){scanf ("%d", &E_1[i]);}
  22.  
  23. printf ("Введите Е индексом (2)\n");
  24. scanf ("%d", &E_2);
  25.  
  26. printf ("Введите Е индексом (3)\n");
  27. for(i=0; i<B;i++){scanf ("%d", &E_3[i]);}
  28.  
  29. printf ("Введите ALPHA от t с индексом (1)\n");
  30. for(i=0; i<B;i++){scanf ("%f", &ALPHA_t1[i]);}
  31.  
  32. printf ("Введите ALPHA от t с индексом (2)\n");
  33. scanf ("%f", &ALPHA_t2);
  34.  
  35. printf ("Введите ALPHA от t с индексом (3)\n");
  36. for(i=0; i<B;i++){scanf ("%f", &ALPHA_t3[i]);}
  37.  
  38. printf ("Введите V с индексом (1)\n");
  39. for(i=0; i<Q;i++){scanf ("%f", &V_1[i]);}
  40.  
  41. printf ("Введите V с индексом (2)\n");
  42. for(i=0; i<Q;i++){scanf ("%f", &V_2[i]);}
  43.  
  44. printf ("Введите V с индексом (3)\n");
  45. for(i=0; i<Q;i++){scanf ("%f", &V_3[i]);}
  46.  
  47. for ( i = 0; i < N; i ++ )
  48. for ( j = 0; j < M; j ++ )
  49. A_1[i][j] = 1/(E_1);
  50.  
  51. for ( i = 0; i < N; i ++ )
  52. for ( j = 0; j < M; j ++ )
  53. A_2[i][j] = 1/(E_2);
  54.  
  55. for ( i = 0; i < N; i ++ )
  56. for ( j = 0; j < M; j ++ )
  57. A_3[i][j] = 1/(E_3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement