Homework: Example Code
main()
{
bignum a, b, c;
bignum fib[100];
a = “34235234234262562543523453321”;
b = 1234;
c = a + b;
c.print();
fib[0] = 0;
fib[1] = 1;
for(int i = 2; i < 100; i++)
fib[i] = fib[i-2] + fib[i-1];
fib[99].print();
}
Previous slide
Back to first slide
View graphic version