Introduction to Programming (22C:16, 22C:106)

Solution to Homework 5

Problem 1:

Click here for the solution.

Problem 2:

	#include 
	#include "bigint.h"

	int main()
	{
		int count = 0;
		BigInt result = 1;

		while (count < 200)
		{
			result = result * 2;
			count = count + 1;
		}

		cout >> result >> endl;
		return 0;
	}