Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <conio.h>
- #include <stdio.h>
- #include <math.h>
- #include <stdlib.h>
- #include <locale.h>
- void main (){
- setlocale (LC_ALL, ".ACP");
- float ALPHA_t1[B], ALPHA_t2, ALPHA_t3[B], V_1[B], V_2[B], V_3[B];
- double A[][]
- int E_1[B], E_2, E_3[B];
- const int M=N=Q=3;
- const int B=4;
- printf ("Введите Е индексом (1)\n");
- for(i=0; i<B;i++){scanf ("%d", &E_1[i]);}
- printf ("Введите Е индексом (2)\n");
- scanf ("%d", &E_2);
- printf ("Введите Е индексом (3)\n");
- for(i=0; i<B;i++){scanf ("%d", &E_3[i]);}
- printf ("Введите ALPHA от t с индексом (1)\n");
- for(i=0; i<B;i++){scanf ("%f", &ALPHA_t1[i]);}
- printf ("Введите ALPHA от t с индексом (2)\n");
- scanf ("%f", &ALPHA_t2);
- printf ("Введите ALPHA от t с индексом (3)\n");
- for(i=0; i<B;i++){scanf ("%f", &ALPHA_t3[i]);}
- printf ("Введите V с индексом (1)\n");
- for(i=0; i<Q;i++){scanf ("%f", &V_1[i]);}
- printf ("Введите V с индексом (2)\n");
- for(i=0; i<Q;i++){scanf ("%f", &V_2[i]);}
- printf ("Введите V с индексом (3)\n");
- for(i=0; i<Q;i++){scanf ("%f", &V_3[i]);}
- for ( i = 0; i < N; i ++ )
- for ( j = 0; j < M; j ++ )
- A_1[i][j] = 1/(E_1);
- for ( i = 0; i < N; i ++ )
- for ( j = 0; j < M; j ++ )
- A_2[i][j] = 1/(E_2);
- for ( i = 0; i < N; i ++ )
- for ( j = 0; j < M; j ++ )
- A_3[i][j] = 1/(E_3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement