allekco

MAIN.c

May 31st, 2018
133
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <time.h>
  3. #include <stdlib.h>
  4. #include <string.h>
  5. #include <math.h>
  6. #include <stddef.h>
  7. #include "file.h"
  8.  
  9. int main(void) {
  10.    
  11.     int a1, a2;
  12.     scanf ("%d", &a1);
  13.     scanf ("%d", &a2);
  14.     struct long_num B1;
  15.     struct long_num B2;
  16.        
  17.     printf ("begin \n");
  18.     B1 = first (a1);
  19.     B2 = first (a2);
  20. //  output (B1);
  21. //  output (B2);   
  22.        
  23. //  struct long_num Sum;
  24. //  Sum = summa (B1, B2);
  25. //  output (Sum);  
  26.        
  27.     struct long_num X;
  28.     struct long_num Y;
  29.  
  30.     printf ("numbers with zero: ");
  31.     X = zeros (B1, B2);
  32.     Y = zeros (B2, B1);
  33.     output (X);
  34.     output (Y);
  35.    
  36.     printf ("begin karatzuba \n");
  37.     struct long_num miay;
  38.     miay = kara (X, Y);
  39.  
  40.     printf ("!!!RESULT: ");
  41.     output (miay);
  42.     return 0;
  43. }
RAW Paste Data