Subtraction in C++ BigInteger

Subtract two big Numbers and store result in an array

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 #include <iostream>
# include <iomanip>
using namespace std;
int main()
{

int array1[5]={23423142,234234,7658,987456,34555}; 
                                                                             //23423142234234765898745634555
int array2[5]={4242,9879234,0,987456,34555};                                                                                            
                                                                            //42429879234098745634555

// Subtract and store in a string 23423142234234765898745634555-42429879234098745634555
       
return 0;
}
Last edited on
Topic archived. No new replies allowed.