// Calculator.assignment.cpp : This file contains the 'main' function. Program execution begins and ends there.
//


#include <iostream>
#include <math.h>
#include <cmath>
#include <iomanip>
#include <cctype>


using namespace std;

double input, output;
float PI, aa, bb;
int cc;


void kmToOthers() {
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Km to Miles";
	cout << "\n\t\t\t\t2.Km to Feet";
	cout << "\n\t\t\t\t3.Km to Inches";
	cout << "\n\t\t\t\t4.Km to furlongs";
	cout << "\n\t\t\t\t5.Km to yards";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kilometers:";
		cin >> input;
		output = input * 0.621371;
		cout << "\n\n\t\t\t\t" << input << "km = " << output << "miles";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kilometers:";
		cin >> input;
		output = input * 3280.84;
		cout << "\n\n\t\t\t\t" << input << "km = " << output << "feet";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kilometers:";
		cin >> input;
		output = input * 39370.1;
		cout << "\n\n\t\t\t\t" << input << "km = " << output << "inches";
		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kilometres:";
		cin >> input;
		output = input * 4.971;
		cout << "\n\n\t\t\t\t" << input << "kilometres = " << output << "furlongs";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kilometres:";
		cin >> input;
		output = input * 1093.61;
		cout << "\n\n\t\t\t\t" << input << "km = " << output << "yards";

		break;
	}

}

void milesToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Miles to km";
	cout << "\n\t\t\t\t2.Miles to Feet";
	cout << "\n\t\t\t\t3.Miles to Inches";
	cout << "\n\t\t\t\t4.Miles to furlongs";
	cout << "\n\t\t\t\t5.Miles to yards";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in miles:";
		cin >> input;
		output = input * 1.60934;
		cout << "\n\n\t\t\t\t" << input << "miles = " << output << "km";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in miles:";
		cin >> input;
		output = input * 5280;
		cout << "\n\n\t\t\t\t" << input << "miles = " << output << "feet";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in miles:";
		cin >> input;
		output = input * 63360;
		cout << "\n\n\t\t\t\t" << input << "miles = " << output << "inches";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in miles:";
		cin >> input;
		output = input * 7.99998;
		cout << "\n\n\t\t\t\t" << input << "miles = " << output << "furlongs";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in miles:";
		cin >> input;
		output = input * 1760;
		cout << "\n\n\t\t\t\t" << input << "miles = " << output << "yards";

		break;
	}

}
void feetToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Feet to km";
	cout << "\n\t\t\t\t2.Feet to miles";
	cout << "\n\t\t\t\t3.Feet to Inches";
	cout << "\n\t\t\t\t4.Feet to furlongs";
	cout << "\n\t\t\t\t5.Feet to yards";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in feet:";
		cin >> input;
		output = input * 0.0003048;
		cout << "\n\n\t\t\t\t" << input << "feet = " << output << "km";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in feet:";
		cin >> input;
		output = input * 0.000189394;
		cout << "\n\n\t\t\t\t" << input << "feet = " << output << "miles";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in feet:";
		cin >> input;
		output = input * 12;
		cout << "\n\n\t\t\t\t" << input << "feet = " << output << "inches";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in feet:";
		cin >> input;
		output = input * 0.00151515;
		cout << "\n\n\t\t\t\t" << input << "feet = " << output << "furlongs";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in feet:";
		cin >> input;
		output = input * 0.333333;
		cout << "\n\n\t\t\t\t" << input << "feet = " << output << "yards";

		break;
	}

}
void inchesToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Inches to km";
	cout << "\n\t\t\t\t2.Inches to miles";
	cout << "\n\t\t\t\t3.Inches to feet";
	cout << "\n\t\t\t\t4.Inches to furlongs";
	cout << "\n\t\t\t\t5.Inches to yards";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in inches:";
		cin >> input;
		output = input * 0.0000254;
		cout << "\n\n\t\t\t\t" << input << "inches = " << output << "km";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in inches:";
		cin >> input;
		output = input * 0.0000157828;
		cout << "\n\n\t\t\t\t" << input << "inches = " << output << "miles";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in inches:";
		cin >> input;
		output = input * 0.083333;
		cout << "\n\n\t\t\t\t" << input << "inches = " << output << "feet";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in inches:";
		cin >> input;
		output = input * 0.000126262;
		cout << "\n\n\t\t\t\t" << input << "inches = " << output << "furlongs";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in inches:";
		cin >> input;
		output = input * 0.0277778;
		cout << "\n\n\t\t\t\t" << input << "inches = " << output << "yards";

		break;
	}

}
void furlongsToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Furlongs to km";
	cout << "\n\t\t\t\t2.Furlongs to miles";
	cout << "\n\t\t\t\t3.Furlongs to feet";
	cout << "\n\t\t\t\t3.Furlongs to inches";
	cout << "\n\t\t\t\t3.Furlongs to yards";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Furlongs:";
		cin >> input;
		output = input * 0.201168;
		cout << "\n\n\t\t\t\t" << input << "Furlongs = " << output << "km";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Furlongs:";
		cin >> input;
		output = input * 0.125;
		cout << "\n\n\t\t\t\t" << input << "Furlongs = " << output << "miles";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Furlongs:";
		cin >> input;
		output = input * 660.001;
		cout << "\n\n\t\t\t\t" << input << "Furlongs = " << output << "feet";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Furlongs:";
		cin >> input;
		output = input * 7920.02;
		cout << "\n\n\t\t\t\t" << input << "Furlongs = " << output << "inches";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Furlongs:";
		cin >> input;
		output = input * 220;
		cout << "\n\n\t\t\t\t" << input << "Furlongs = " << output << "yards";

		break;
	}

}
void yardsToOthers() {
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Yards to Miles";
	cout << "\n\t\t\t\t2.Yards to Feet";
	cout << "\n\t\t\t\t3.Yards to Inches";
	cout << "\n\t\t\t\t4.Yards to furlongs";
	cout << "\n\t\t\t\t5.Yards to km";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Yards:";
		cin >> input;
		output = input * 0.000568182;
		cout << "\n\n\t\t\t\t" << input << "Yards = " << output << "miles";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Yards:";
		cin >> input;
		output = input * 3;
		cout << "\n\n\t\t\t\t" << input << "Yards = " << output << "feet";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Yards:";
		cin >> input;
		output = input * 36;
		cout << "\n\n\t\t\t\t" << input << "Yards = " << output << "inches";
		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Yards:";
		cin >> input;
		output = input * 0.00454545;
		cout << "\n\n\t\t\t\t" << input << "Yards = " << output << "furlongs";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Yards:";
		cin >> input;
		output = input * 0.0009144;
		cout << "\n\n\t\t\t\t" << input << "Yards = " << output << "km";

		break;
	}

}
void atmToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.atm to Bar";
	cout << "\n\t\t\t\t2.atm to mmHg";
	cout << "\n\t\t\t\t3.atm to kgf/cm^2";
	cout << "\n\t\t\t\t4.atm to lbf/in^2";
	cout << "\n\t\t\t\t5.atm to Pascals";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in atm:";
		cin >> input;
		output = input * 1.01325;
		cout << "\n\n\t\t\t\t" << input << "atm = " << output << "Bar";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in atm:";
		cin >> input;
		output = input * 760;
		cout << "\n\n\t\t\t\t" << input << "atm = " << output << "mmHg";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in atm:";
		cin >> input;
		output = input * 1.03323;
		cout << "\n\n\t\t\t\t" << input << "atm = " << output << "kgf/cm^2";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in atm:";
		cin >> input;
		output = input * 14.6959;
		cout << "\n\n\t\t\t\t" << input << "atm = " << output << "lbf/in^2";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in atm:";
		cin >> input;
		output = input * 101325;
		cout << "\n\n\t\t\t\t" << input << "atm = " << output << "Pascals";

		break;
	}

}
void mmHgToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.mmHg to Bar";
	cout << "\n\t\t\t\t2.mmHg to atm";
	cout << "\n\t\t\t\t3.mmHg to kgf/cm^2";
	cout << "\n\t\t\t\t4.mmHg to lbf/in^2";
	cout << "\n\t\t\t\t5.mmHg to Pascals";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in mmHg:";
		cin >> input;
		output = input * 0.00133322;
		cout << "\n\n\t\t\t\t" << input << "mmHg = " << output << "Bar";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in mmHg:";
		cin >> input;
		output = input * 0.00131579;
		cout << "\n\n\t\t\t\t" << input << "mmHg = " << output << "atm";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in mmHg:";
		cin >> input;
		output = input * 0.00135951;
		cout << "\n\n\t\t\t\t" << input << "mmHg = " << output << "kgf/cm^2";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in mmHg:";
		cin >> input;
		output = input * 0.0193368;
		cout << "\n\n\t\t\t\t" << input << "mmHg = " << output << "lbf/in^2";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in mmHg:";
		cin >> input;
		output = input * 133.322;
		cout << "\n\n\t\t\t\t" << input << "mmHg = " << output << "Pascals";

		break;
	}

}
void kgfpcm2ToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.kgf/cm^2 to Bar";
	cout << "\n\t\t\t\t2.kgf/cm^2 to mmHg";
	cout << "\n\t\t\t\t3.kgf/cm^2 to atm";
	cout << "\n\t\t\t\t4.kgf/cm^2 to lbf/in^2";
	cout << "\n\t\t\t\t5.kgf/cm^2 to Pascals";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kgf/cm^2:";
		cin >> input;
		output = input * 0.980665;
		cout << "\n\n\t\t\t\t" << input << "kgf/cm^2 = " << output << "Bar";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kgf/cm^2:";
		cin >> input;
		output = input * 735.559;
		cout << "\n\n\t\t\t\t" << input << "kgf/cm^2 = " << output << "mmHg";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kgf/cm^2:";
		cin >> input;
		output = input * 0.967841;
		cout << "\n\n\t\t\t\t" << input << "kgf/cm^2 = " << output << "atm";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kgf/cm^2:";
		cin >> input;
		output = input * 14.2233;
		cout << "\n\n\t\t\t\t" << input << "kgf/cm^2 = " << output << "lbf/in^2";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kgf/cm^2:";
		cin >> input;
		output = input * 98066.5;
		cout << "\n\n\t\t\t\t" << input << "kgf/cm^2 = " << output << "Pascals";

		break;
	}

}
void pascalsToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Pascals to Bar";
	cout << "\n\t\t\t\t2.Pascals to mmHg";
	cout << "\n\t\t\t\t3.Pascals to kgf/cm^2";
	cout << "\n\t\t\t\t4.Pascals to lbf/in^2";
	cout << "\n\t\t\t\t5.Pascals to atm";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Pascals:";
		cin >> input;
		output = input * 0.00001;
		cout << "\n\n\t\t\t\t" << input << "Pascals = " << output << "Bar";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Pascals:";
		cin >> input;
		output = input * 0.00750062;
		cout << "\n\n\t\t\t\t" << input << "Pascals = " << output << "mmHg";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Pascals:";
		cin >> input;
		output = input * 0.000010197;
		cout << "\n\n\t\t\t\t" << input << "Pascals = " << output << "kgf/cm^2";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Pascals:";
		cin >> input;
		output = input * 0.000145038;
		cout << "\n\n\t\t\t\t" << input << "Pascals = " << output << "lbf/in^2";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Pascals:";
		cin >> input;
		output = input * 0.0000098692;
		cout << "\n\n\t\t\t\t" << input << "Pascals = " << output << "atm";

		break;
	}

}
void lbfpin2ToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.lbf/in^2 to Bar";
	cout << "\n\t\t\t\t2.lbf/in^2 to mmHg";
	cout << "\n\t\t\t\t3.lbf/in^2 to kgf/cm^2";
	cout << "\n\t\t\t\t4.lbf/in^2 to lbf/in^2";
	cout << "\n\t\t\t\t5.lbf/in^2 to Pascals";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in lbf/in^2:";
		cin >> input;
		output = input * 0.0689476;
		cout << "\n\n\t\t\t\t" << input << "lbf/in^2 = " << output << "Bar";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in lbf/in^2:";
		cin >> input;
		output = input * 51.7149;
		cout << "\n\n\t\t\t\t" << input << "lbf/in^2 = " << output << "mmHg";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in lbf/in^2:";
		cin >> input;
		output = input * 0.070307;
		cout << "\n\n\t\t\t\t" << input << "lbf/in^2 = " << output << "kgf/cm^2";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in lbf/in^2:";
		cin >> input;
		output = input * 0.068046;
		cout << "\n\n\t\t\t\t" << input << "lbf/in^2 = " << output << "atm";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in lbf/in^2:";
		cin >> input;
		output = input * 6894.76;
		cout << "\n\n\t\t\t\t" << input << "lbf/in^2 = " << output << "Pascals";

		break;
	}

}
void barToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Bar to atm";
	cout << "\n\t\t\t\t2.Bar to mmHg";
	cout << "\n\t\t\t\t3.Bar to kgf/cm^2";
	cout << "\n\t\t\t\t4.Bar to lbf/in^2";
	cout << "\n\t\t\t\t5.Bar to Pascals";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Bar:";
		cin >> input;
		output = input * 0.986923;
		cout << "\n\n\t\t\t\t" << input << "Bar = " << output << "atm";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Bar:";
		cin >> input;
		output = input * 750.062;
		cout << "\n\n\t\t\t\t" << input << "Bar = " << output << "mmHg";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Bar:";
		cin >> input;
		output = input * 1.01972;
		cout << "\n\n\t\t\t\t" << input << "Bar = " << output << "kgf/cm^2";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Bar:";
		cin >> input;
		output = input * 14.5038;
		cout << "\n\n\t\t\t\t" << input << "Bar = " << output << "lbf/in^2";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Bar:";
		cin >> input;
		output = input * 100000;
		cout << "\n\n\t\t\t\t" << input << "Bar = " << output << "Pascals";
	}

}
void celciusToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Celcius to kelvin";
	cout << "\n\t\t\t\t2.Celcius to fahrenheit";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Celcius:";
		cin >> input;
		output = input + 273.15;
		cout << "\n\n\t\t\t\t" << input << "Celcius = " << output << "kelvin";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Celcius:";
		cin >> input;
		output = input * 1.8 + 32;
		cout << "\n\n\t\t\t\t" << input << "Celcius = " << output << "fahrenheit";

		break;

	}

}
void kelvinToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Kelvin to celcius";
	cout << "\n\t\t\t\t2.Kelvin to fahrenheit";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Kelvin:";
		cin >> input;
		output = input - 273.15;
		cout << "\n\n\t\t\t\t" << input << "Kelvin = " << output << "celcius";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Kelvin:";
		cin >> input;
		output = input - 459.67;
		cout << "\n\n\t\t\t\t" << input << "Kelvin = " << output << "fahrenheit";

		break;

	}

}
void fahrenheitToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Fahrenheit to celcius";
	cout << "\n\t\t\t\t2.Fahrenheit to kelvin";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in fahrenheit:";
		cin >> input;
		output = input - 17.7778;
		cout << "\n\n\t\t\t\t" << input << "fahrenheit = " << output << "celcius";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in fahrenheit:";
		cin >> input;
		output = input + 255.372;
		cout << "\n\n\t\t\t\t" << input << "fahrenheit = " << output << "kelvin";

		break;

	}

}
void kgToOthers() {
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Kg to Ounces";
	cout << "\n\t\t\t\t2.Kg to Pounds";
	cout << "\n\t\t\t\t3.Kg to Stones";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kilograms:";
		cin >> input;
		output = input * 35.274;
		cout << "\n\n\t\t\t\t" << input << "kg = " << output << "ounces";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kilograms:";
		cin >> input;
		output = input * 2.20462;
		cout << "\n\n\t\t\t\t" << input << "kg = " << output << "pounds";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kilometers:";
		cin >> input;
		output = input * 0.157473;
		cout << "\n\n\t\t\t\t" << input << "kg = " << output << "stones";
		break;
	}

}
void ouncesToOthers() {
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Ounces to kg";
	cout << "\n\t\t\t\t2.Ounces to Pounds";
	cout << "\n\t\t\t\t3.Ounces to Stones";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Ounces:";
		cin >> input;
		output = input * 0.0283495;
		cout << "\n\n\t\t\t\t" << input << "Ounces = " << output << "kg";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Ounces:";
		cin >> input;
		output = input * 0.0625;
		cout << "\n\n\t\t\t\t" << input << "Ounces = " << output << "pounds";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Ounces:";
		cin >> input;
		output = input * 0.00446429;
		cout << "\n\n\t\t\t\t" << input << "Ounces = " << output << "stones";

		break;
	}
}
void poundsToOthers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Pounds to kg";
	cout << "\n\t\t\t\t2.Pounds to ounces";
	cout << "\n\t\t\t\t3.Pounds to stones";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Pounds:";
		cin >> input;
		output = input * 0.453592;
		cout << "\n\n\t\t\t\t" << input << "Pounds = " << output << "kg";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Pounds:";
		cin >> input;
		output = input * 16;
		cout << "\n\n\t\t\t\t" << input << "Pounds = " << output << "ounces";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Pounds:";
		cin >> input;
		output = input * 0.0714286;
		cout << "\n\n\t\t\t\t" << input << "Pounds = " << output << "stones";
		break;
	}


}
void stonesToOthers() {
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Stones to kg";
	cout << "\n\t\t\t\t2.Stones to ounces";
	cout << "\n\t\t\t\t3.Stones to pounds";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in stones:";
		cin >> input;
		output = input * 6.35029;
		cout << "\n\n\t\t\t\t" << input << "stones = " << output << "kg";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in stones:";
		cin >> input;
		output = input * 224;
		cout << "\n\n\t\t\t\t" << input << "stones = " << output << "ounces";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in stones:";
		cin >> input;
		output = input * 14;
		cout << "\n\n\t\t\t\t" << input << "stones = " << output << "pounds";
		break;
	}

}
void kmphToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Km/h to mph";
	cout << "\n\t\t\t\t2.Km/h to m/s";
	cout << "\n\t\t\t\t3.Km/h to mach";
	cout << "\n\t\t\t\t4.Km/h to knots";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Km/h:";
		cin >> input;
		output = input * 0.621371;
		cout << "\n\n\t\t\t\t" << input << "Km/h = " << output << "mph";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Km/h:";
		cin >> input;
		output = input * 0.277778;
		cout << "\n\n\t\t\t\t" << input << "Km/h = " << output << "m/s";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Km/h:";
		cin >> input;
		output = input * 0.00081;
		cout << "\n\n\t\t\t\t" << input << "Km/h = " << output << "mach";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Km/h:";
		cin >> input;
		output = input * 0.539957;
		cout << "\n\n\t\t\t\t" << input << "Km/h = " << output << "knots";

		break;

	}

}
void mphToOhers()
{
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Mph to km/h";
	cout << "\n\t\t\t\t2.Mph to m/s";
	cout << "\n\t\t\t\t3.Mph to mach";
	cout << "\n\t\t\t\t4.Mph to knots";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Mph:";
		cin >> input;
		output = input * 1.60934;
		cout << "\n\n\t\t\t\t" << input << "Mph = " << output << "km/h";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Mph:";
		cin >> input;
		output = input * 0.44704;
		cout << "\n\n\t\t\t\t" << input << "Mph = " << output << "m/s";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Mph:";
		cin >> input;
		output = input * 0.00130332;
		cout << "\n\n\t\t\t\t" << input << "Mph = " << output << "mach";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Mph:";
		cin >> input;
		output = input * 0.868976;
		cout << "\n\n\t\t\t\t" << input << "Mph = " << output << "knots";

		break;

	}

}
void mpsToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.m/s to km/h";
	cout << "\n\t\t\t\t2.m/s to mph";
	cout << "\n\t\t\t\t3.m/s to mach";
	cout << "\n\t\t\t\t4.m/s to knots";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in m/s:";
		cin >> input;
		output = input * 3.6;
		cout << "\n\n\t\t\t\t" << input << "m/s = " << output << "km/h";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in m/s:";
		cin >> input;
		output = input * 2.23694;
		cout << "\n\n\t\t\t\t" << input << "m/s = " << output << "mph";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in m/s:";
		cin >> input;
		output = input * 0.002915;
		cout << "\n\n\t\t\t\t" << input << "m/s = " << output << "mach";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in m/s:";
		cin >> input;
		output = input * 1.94384;
		cout << "\n\n\t\t\t\t" << input << "m/s = " << output << "knots";

		break;

	}

}
void knotsToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Knots to km/h";
	cout << "\n\t\t\t\t2.Knots to m/s";
	cout << "\n\t\t\t\t3.Knots to mach";
	cout << "\n\t\t\t\t4.Knots to mph";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Knots:";
		cin >> input;
		output = input * 1.852;
		cout << "\n\n\t\t\t\t" << input << "Knots = " << output << "km/h";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Knots:";
		cin >> input;
		output = input * 0.514444;
		cout << "\n\n\t\t\t\t" << input << "Knots = " << output << "m/s";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Knots:";
		cin >> input;
		output = input * 0.0015;
		cout << "\n\n\t\t\t\t" << input << "Knots = " << output << "mach";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Knots:";
		cin >> input;
		output = input * 1.15078;
		cout << "\n\n\t\t\t\t" << input << "Knots = " << output << "mph";

		break;

	}

}
void machToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Mach to km/h";
	cout << "\n\t\t\t\t2.Mach to mph";
	cout << "\n\t\t\t\t3.Mach to m/s";
	cout << "\n\t\t\t\t4.Mach to knots";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Mach:";
		cin >> input;
		output = input * 1234.8;
		cout << "\n\n\t\t\t\t" << input << "Mach = " << output << "km/h";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Mach:";
		cin >> input;
		output = input * 767.269;
		cout << "\n\n\t\t\t\t" << input << "Mach = " << output << "mph";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Mach:";
		cin >> input;
		output = input * 343;
		cout << "\n\n\t\t\t\t" << input << "Mach = " << output << "m/s";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Mach:";
		cin >> input;
		output = input * 666.739;
		cout << "\n\n\t\t\t\t" << input << "Mach = " << output << "knots";

		break;

	}

}
void radiansToDegrees()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Radians to degrees";
	cout << "\n\t\t\t\t2.Degrees to radians";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Radians:";
		cin >> input;
		output = input * 57.296;
		cout << "\n\n\t\t\t\t" << input << "Radians = " << output << "degrees";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Degrees:";
		cin >> input;
		output = input * 0.0174533;
		cout << "\n\n\t\t\t\t" << input << "Degrees = " << output << "radians";

		break;
	}
}
void joulesToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Joules to kJ";
	cout << "\n\t\t\t\t2.Joules to kWh";
	cout << "\n\t\t\t\t3.Joules to calories";
	cout << "\n\t\t\t\t4.Joules to Btu";
	cout << "\n\t\t\t\t5.Joules to therm";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Joules:";
		cin >> input;
		output = input * 0.001;
		cout << "\n\n\t\t\t\t" << input << "Joules = " << output << "kJ";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Joules:";
		cin >> input;
		output = input * 0.0000002778;
		cout << "\n\n\t\t\t\t" << input << "Joules = " << output << "kWh";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Joules:";
		cin >> input;
		output = input * 0.239;
		cout << "\n\n\t\t\t\t" << input << "Joules = " << output << "calories";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Joules:";
		cin >> input;
		output = input * 0.0009478;
		cout << "\n\n\t\t\t\t" << input << "Joules = " << output << "Btu";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Joules:";
		cin >> input;
		output = input * 0.000000009;
		cout << "\n\n\t\t\t\t" << input << "Joules = " << output << "therm";

		break;
	}
}
void kjToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.kJ to Joules";
	cout << "\n\t\t\t\t2.kJ to kWh";
	cout << "\n\t\t\t\t3.kJ to calories";
	cout << "\n\t\t\t\t4.kJ to Btu";
	cout << "\n\t\t\t\t5.kJ to therm";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kJ:";
		cin >> input;
		output = input * 1000;
		cout << "\n\n\t\t\t\t" << input << "kJ = " << output << "joules";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kJ:";
		cin >> input;
		output = input * 0.0002778;
		cout << "\n\n\t\t\t\t" << input << "kJ = " << output << "kWh";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kJ:";
		cin >> input;
		output = input * 239.006;
		cout << "\n\n\t\t\t\t" << input << "kJ = " << output << "calories";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kJ:";
		cin >> input;
		output = input * 0.947817;
		cout << "\n\n\t\t\t\t" << input << "kJ = " << output << "Btu";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kJ:";
		cin >> input;
		output = input * 0.00000948;
		cout << "\n\n\t\t\t\t" << input << "kJ = " << output << "therm";

		break;
	}
}
void kwhToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.kWh to kJ";
	cout << "\n\t\t\t\t2.kWh to joules";
	cout << "\n\t\t\t\t3.kWh to calories";
	cout << "\n\t\t\t\t4.kWh to Btu";
	cout << "\n\t\t\t\t5.kWh to therm";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kWh:";
		cin >> input;
		output = input * 3600;
		cout << "\n\n\t\t\t\t" << input << "kWh = " << output << "kJ";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kWh:";
		cin >> input;
		output = input * 3600000;
		cout << "\n\n\t\t\t\t" << input << "kWh = " << output << "joules";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kWh:";
		cin >> input;
		output = input * 860421;
		cout << "\n\n\t\t\t\t" << input << "kWh = " << output << "calories";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kWh:";
		cin >> input;
		output = input * 3412.14;
		cout << "\n\n\t\t\t\t" << input << "kWh = " << output << "Btu";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in kWh:";
		cin >> input;
		output = input * 0.0341296;
		cout << "\n\n\t\t\t\t" << input << "kWh = " << output << "therm";

		break;
	}
}
void caloriesToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Calories to kJ";
	cout << "\n\t\t\t\t2.Calories to kWh";
	cout << "\n\t\t\t\t3.Calories to joules";
	cout << "\n\t\t\t\t4.Calories to Btu";
	cout << "\n\t\t\t\t5.Calories to therm";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Calories:";
		cin >> input;
		output = input * 0.004184;
		cout << "\n\n\t\t\t\t" << input << "Calories = " << output << "kJ";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Calories:";
		cin >> input;
		output = input * 0.00000116;
		cout << "\n\n\t\t\t\t" << input << "Calories = " << output << "kWh";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Calories:";
		cin >> input;
		output = input * 4.184;
		cout << "\n\n\t\t\t\t" << input << "Calories = " << output << "joules";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Calories:";
		cin >> input;
		output = input * 0.00396567;
		cout << "\n\n\t\t\t\t" << input << "Calories = " << output << "Btu";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Calories:";
		cin >> input;
		output = input * 0.0000000397;
		cout << "\n\n\t\t\t\t" << input << "Calories = " << output << "therm";

		break;
	}
}
void btuToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Btu to kJ";
	cout << "\n\t\t\t\t2.Btu to kWh";
	cout << "\n\t\t\t\t3.Btu to calories";
	cout << "\n\t\t\t\t4.Btu to joules";
	cout << "\n\t\t\t\t5.Btu to therm";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Btu:";
		cin >> input;
		output = input * 1.05506;
		cout << "\n\n\t\t\t\t" << input << "Btu = " << output << "kJ";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Btu:";
		cin >> input;
		output = input * 0.0002931;
		cout << "\n\n\t\t\t\t" << input << "Btu = " << output << "kWh";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Btu:";
		cin >> input;
		output = input * 252.164;
		cout << "\n\n\t\t\t\t" << input << "Btu = " << output << "calories";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Btu:";
		cin >> input;
		output = input * 1055.06;
		cout << "\n\n\t\t\t\t" << input << "Btu = " << output << "joules";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Btu:";
		cin >> input;
		output = input * 0.00001;
		cout << "\n\n\t\t\t\t" << input << "Btu = " << output << "therm";

		break;
	}
}
void thermToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Therm to kJ";
	cout << "\n\t\t\t\t2.Therm to kWh";
	cout << "\n\t\t\t\t3.Therm to calories";
	cout << "\n\t\t\t\t4.Therm to Btu";
	cout << "\n\t\t\t\t5.Therm to joules";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in therm:";
		cin >> input;
		output = input * 105480;
		cout << "\n\n\t\t\t\t" << input << "therm = " << output << "kJ";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in therm:";
		cin >> input;
		output = input * 29.3001;
		cout << "\n\n\t\t\t\t" << input << "therm = " << output << "kWh";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in therm:";
		cin >> input;
		output = input * 25210400;
		cout << "\n\n\t\t\t\t" << input << "therm = " << output << "calories";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in therm:";
		cin >> input;
		output = input * 99976.1;
		cout << "\n\n\t\t\t\t" << input << "therm = " << output << "Btu";

		break;
	case 5:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in therm:";
		cin >> input;
		output = input * 105500000;
		cout << "\n\n\t\t\t\t" << input << "therm = " << output << "joules";

		break;
	}
}
void squarefeetToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Square feet to Hectares";
	cout << "\n\t\t\t\t2.Square feet to Square metres";
	cout << "\n\t\t\t\t3.Square feet to Acres";
	cout << "\n\t\t\t\t4.Square feet to Square miles";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Square feet:";
		cin >> input;
		output = input * 0.0000092903;
		cout << "\n\n\t\t\t\t" << input << "Square feet = " << output << "Hectares";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Square feet:";
		cin >> input;
		output = input * 0.0929;
		cout << "\n\n\t\t\t\t" << input << "Square feet = " << output << "Square metres";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Square feet:";
		cin >> input;
		output = input * 0.000022957;
		cout << "\n\n\t\t\t\t" << input << "Square feet = " << output << "Acres";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Square feet:";
		cin >> input;
		output = input * 0.00000003587;
		cout << "\n\n\t\t\t\t" << input << "Square feet = " << output << "Square miles";

		break;
	}
}
void hectaresToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Hectares to Square miles";
	cout << "\n\t\t\t\t2.Hectares to Square feet";
	cout << "\n\t\t\t\t3.Hectares to Acres";
	cout << "\n\t\t\t\t4.Hectares to Square metres";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Hectares:";
		cin >> input;
		output = input * 0.00386102;
		cout << "\n\n\t\t\t\t" << input << "Hectares = " << output << "Square miles";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Hectares:";
		cin >> input;
		output = input * 107639;
		cout << "\n\n\t\t\t\t" << input << "Hectares = " << output << "Square feet";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Hectares :";
		cin >> input;
		output = input * 2.47105;
		cout << "\n\n\t\t\t\t" << input << "Hectares = " << output << "Acres";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Hectares:";
		cin >> input;
		output = input * 10000;
		cout << "\n\n\t\t\t\t" << input << "Hectares = " << output << "Square metres";

		break;
	}
}
void squaremetresToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Square metres to Hectares";
	cout << "\n\t\t\t\t2.Square metres to Square feet";
	cout << "\n\t\t\t\t3.Square metres to Acres";
	cout << "\n\t\t\t\t4.Square metres to Square miles";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Square metres:";
		cin >> input;
		output = input * 0.0001;
		cout << "\n\n\t\t\t\t" << input << "Square metres = " << output << "Hectares";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Square metres:";
		cin >> input;
		output = input * 10.7639;
		cout << "\n\n\t\t\t\t" << input << "Square metres = " << output << "Square feet";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Square metres:";
		cin >> input;
		output = input * 0.000247105;
		cout << "\n\n\t\t\t\t" << input << "Square metres = " << output << "Acres";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Square metres:";
		cin >> input;
		output = input * 0.0000003861;
		cout << "\n\n\t\t\t\t" << input << "Square metres = " << output << "Square miles";

		break;
	}
}
void acresToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Acres to Square miles";
	cout << "\n\t\t\t\t2.Acres to Square feet";
	cout << "\n\t\t\t\t3.Acres to Hectares";
	cout << "\n\t\t\t\t4.Acres to Square metres";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Acres:";
		cin >> input;
		output = input * 0.0015625;
		cout << "\n\n\t\t\t\t" << input << "Acres = " << output << "Square miles";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Acres:";
		cin >> input;
		output = input * 43560;
		cout << "\n\n\t\t\t\t" << input << "Acres = " << output << "Square feet";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Acres :";
		cin >> input;
		output = input * 0.404686;
		cout << "\n\n\t\t\t\t" << input << "Acres = " << output << "Hectares";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Acres:";
		cin >> input;
		output = input * 4046.86;
		cout << "\n\n\t\t\t\t" << input << "Acres = " << output << "Square metres";

		break;
	}
}
void squaremilesToOhers()
{
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Square miles to Hectares";
	cout << "\n\t\t\t\t2.Square miles to Square feet";
	cout << "\n\t\t\t\t3.Square miles to Acres";
	cout << "\n\t\t\t\t4.Square miles to Square metres";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Square miles:";
		cin >> input;
		output = input * 258.999;
		cout << "\n\n\t\t\t\t" << input << "Square miles = " << output << "Hectares";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Square miles:";
		cin >> input;
		output = input * 27880000;
		cout << "\n\n\t\t\t\t" << input << "Square miles = " << output << "Square feet";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Square miles:";
		cin >> input;
		output = input * 640;
		cout << "\n\n\t\t\t\t" << input << "Square miles = " << output << "Acres";

		break;
	case 4:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Square miles:";
		cin >> input;
		output = input * 2590000;
		cout << "\n\n\t\t\t\t" << input << "Square miles = " << output << "Square metres";

		break;
	}
}
void gallonsToOthers() {
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Gallons to Pints";
	cout << "\n\t\t\t\t2.Gallons to Litres";
	cout << "\n\t\t\t\t3.Gallons to Quarts";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Gallons:";
		cin >> input;
		output = input * 6.66139;
		cout << "\n\n\t\t\t\t" << input << "Gallons = " << output << "pints";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Gallons:";
		cin >> input;
		output = input * 3.785;
		cout << "\n\n\t\t\t\t" << input << "Gallons = " << output << "litres";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Gallons:";
		cin >> input;
		output = input * 4;
		cout << "\n\n\t\t\t\t" << input << "Gallons = " << output << "quarts";

		break;
	}

}
void pintsToOthers() {
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Pints to Gallons";
	cout << "\n\t\t\t\t2.Pints to Litres";
	cout << "\n\t\t\t\t3.Pints to Quarts";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Pints:";
		cin >> input;
		output = input * 0.150119;
		cout << "\n\n\t\t\t\t" << input << "Pints = " << output << "gallons";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Pints:";
		cin >> input;
		output = input * 0.568261;
		cout << "\n\n\t\t\t\t" << input << "Pints = " << output << "litres";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Pints:";
		cin >> input;
		output = input * 0.5;
		cout << "\n\n\t\t\t\t" << input << "Pints = " << output << "quarts";

		break;
	}

}
void litresToOthers() {
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Litres to Gallons";
	cout << "\n\t\t\t\t2.Litres to Pints";
	cout << "\n\t\t\t\t3.Litres to Quarts";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Litres:";
		cin >> input;
		output = input * 0.264172;
		cout << "\n\n\t\t\t\t" << input << "Litres = " << output << "gallons";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Litres:";
		cin >> input;
		output = input * 1.75975;
		cout << "\n\n\t\t\t\t" << input << "Litres = " << output << "pints";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Litres:";
		cin >> input;
		output = input * 0.879877;
		cout << "\n\n\t\t\t\t" << input << "Litres = " << output << "quarts";

		break;
	}

}
void quartsToOthers() {
	double input, output;
	system("cls");
	cout << "\n\t\t\t\t\tSelect a desired option:";
	cout << "\n\t\t\t\t1.Quarts to Gallons";
	cout << "\n\t\t\t\t2.Quarts to Litres";
	cout << "\n\t\t\t\t3.Quarts to Pints";
	cout << endl << endl;
	cout << "Enter the unit to be converted to: ";
	int opt;
	cin >> opt;
	switch (opt)
	{
	case 1:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Quarts:";
		cin >> input;
		output = input * 0.300237;
		cout << "\n\n\t\t\t\t" << input << "Quarts = " << output << "gallons";

		break;
	case 2:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Quarts:";
		cin >> input;
		output = input * 1.13652;
		cout << "\n\n\t\t\t\t" << input << "Quarts = " << output << "litres";

		break;
	case 3:
		system("cls");
		cout << "\n\n\n\n\t\t\t\tEnter value in Quarts:";
		cin >> input;
		output = input * 2;
		cout << "\n\n\t\t\t\t" << input << "Quarts = " << output << "pints";

		break;
	}

}

void displayPoly(float coef[11], int degree) {
	for (int i = 0; i <= degree; i++) {
		if (i == 0) {
			cout << coef[i] << " + ";
		}
		else if (i == degree) {
			cout << coef[i] << "*x^" << i << endl;
		}
		else {
			cout << coef[i] << "*x^" << i << "+";
		}
	}
}

float polynomial(float coef[11], float degree, float x) {
	float y = 0.0;
	for (int i = 0; i <= degree; i++) {
		y += coef[i] * pow(x, i);
	}
	cout << "y =" << y << endl;
	return y;
}
void integrationFunc() {
	int deg;

	cout << "define degree of polynomial:";
	cin >> deg;

	float A[11];
	cout << "define polynomial constants (max 10 degrees):" << endl;
	for (int i = 0; i <= deg; i++) {
		cout << "Input value for A [" << i << "]:";
		cin >> A[i];

	}

	float a, b;
	cout << "Input integration range from: ";
	cin >> a;
	cout << "Input integration range to: ";
	cin >> b;

	cout << "f(x) = ";
	for (int i = 0; i <= deg; i++) {
		if (i == 0) {
			cout << A[i] << "+";
		}
		else if (i == deg) {
			cout << A[i] << "*x^" << i << endl;
		}
		else {
			cout << A[i] << "*x^" << i << "+";
		}
	}

	int num_p = 100;
	float p = (b - a) / num_p;

	float x[101];
	float y[101];

	for (int i = 0; i <= num_p; i++) {
		x[i] = a + i * p;
		for (int j = 0; j <= deg; j++) {
			y[i] += A[j] * pow(x[i], j);
		}
	}

	float trapezium[100];
	for (int i = 0; i < num_p; i++) {
		trapezium[i] = 0.5 * p * (y[i] + y[i + 1]);
	}

	float sum = 0.0;
	for (int i = 0; i <= num_p; i++) {
		sum += trapezium[i];
	}

	cout << "area under the curve is: " << sum << endl;
}
void differntiationFunc() {
	int degree;
	cout << "Degree of Polynomial:";
	cin >> degree;

	float coef[11];
	cout << "Input polynomials constants:" << endl;
	for (int i = 0; i <= degree; i++) {
		cout << "coefficient" << i << ":";
		cin >> coef[i];
	}

	displayPoly(coef, degree);

	float xx;
	cout << "Input value for x for differentiation: ";
	cin >> xx;

	float yy = polynomial(coef, degree, xx);

	float h = 0.1;
	float x1 = xx + h;
	float y1 = polynomial(coef, degree, x1);

	float slope = (y1 - yy) / h;

	cout << "slope=" << slope << endl;
}

void exponentiation(){
	double S, t, result1, result2, choice;
	
	cout << "Value of base: ";
	cin >> S;
	cout << "Value of power: ";
	cin >> t;
	result1 = pow(S,t);
	result2 = pow(t, S);
	do {
		cout << "choose 1 if S^ t or Choose 2 if t^S or any other number to exit: ";
		cin >> choice;
		int i = 1;
		
	for (i; i <= choice; i=i+choice){
		if (choice == 1) {
			cout << result1 << endl;
		}
		
		else if (choice == 2){
			cout << result2 << endl;
		}
		else {
			cout << "invalid";
		}
	}

	} while (choice == 1 || choice == 2);
}

int main()
{
	PI = 22 / 7;
start:
	cout << "\t1.Division";  cout << "\t\t\t\t11.Inverse of Cos" << endl;
	cout << "\t2.Multiplication"; cout << "\t\t\t12.Inverse of Tan" << endl;
	cout << "\t3.Subtraction"; cout << "\t\t\t\t13.Log " << endl;
	cout << "\t4.Addition"; cout << "\t\t\t\t14.Log to Base 10" << endl;
	cout << "\t5.Exponent"; cout << "\t\t\t\t15.Y^x function"<< endl;
	cout << "\t6.Square root"; cout << "\t\t\t\t16.Inverse of Tan" << endl;
	cout << "\t7.Sin"; cout << "\t\t\t\t\t17.Differentiation" << endl;
	cout << "\t8.Cos";  cout << "\t\t\t\t\t18.Integration" << endl;
	cout << "\t9.Tan"; cout << "\t\t\t\t\t19.Conversion of units" << endl;
	cout << "\t10.Inverse of Sin";
	cout << endl << endl;
	cout << "Enter the function that you want to perform : ";

	cin >> cc;
	switch (cc)
	{
	case 1:
		cout << "Enter 1st number : ";
		cin >> aa;
		cout << "Enter 2nd number : ";
		cin >> bb;
		cout << "Division = " << aa / bb << endl;
		break;

	case 2:

		cout << "Enter 1st number : ";
		cin >> aa;
		cout << "Enter 2nd number : ";
		cin >> bb;
		cout << "Multiplication = " << aa * bb << endl;
		break;

	case 3:
		cout << "Enter 1st number : ";
		cin >> aa;
		cout << "Enter 2nd number : ";
		cin >> bb;
		cout << "Subtraction = " << aa - bb << endl;
		break;

	case 4:
		cout << "Enter 1st number : ";
		cin >> aa;
		cout << "Enter 2nd number : ";
		cin >> bb;
		cout << "Addition = " << aa + bb << endl;
		break;

	case 5:
		cout << "Enter the number : ";
		cin >> aa;
		cout << "Enter the exponent : ";
		cin >> bb;
		cout << "Exponent = " << pow(aa, bb) << endl;
		break;

	case 6:
		cout << "Enter the number : ";
		cin >> aa;
		cout << "Square Root = " << sqrt(aa) << endl;
		break;
	case 7:
		cout << "Enter the number : ";
		cin >> aa;
		cout << "Sin = " << sin(aa) << endl;
		break;
	case 8:
		cout << "Enter the number : ";
		cin >> aa;
		cout << "Cos = " << cos(aa) << endl;
		break;
	case 9:
		cout << "Enter the number : ";
		cin >> aa;
		cout << "Tan = " << tan(aa) << endl;
		break;
	case 10:
		cout << "Enter the number : ";
		cin >> aa;
		cout << "Inverse of Sin = " << asin(aa) * 180.0 / PI << endl;
		break;
	case 11:
		cout << "Enter the number : ";
		cin >> aa;
		cout << "Inverse of Cos = " << acos(aa) * 180.0 / PI << endl;
		break;
	case 12:
		cout << "Enter the number : ";
		cin >> aa;
		cout << "Inverse of tan = " << atan(aa) * 180.0 / PI << endl;
		break;
	case 13:
		cout << "Enter the number : ";
		cin >> aa;
		cout << "Log = " << log(aa) << endl;
		break;
	case 14:
		cout << "Enter the number : ";
		cin >> aa;
		cout << "Log to base 10 = " << log10(aa) << endl;
		break;
	case 15:
		exponentiation();
		break;

	case 16:

	case 17:
		differntiationFunc();
	case 18:
		integrationFunc();
	case 19:
		cout << "\n\t1.Km";	cout << "\t\t\t\t\t22.m/s";
		cout << "\n\t2.Miles";  cout << "\t\t\t\t\t23.Knots";
		cout << "\n\t3.Feet"; ; cout << "\t\t\t\t\t24.Mach";
		cout << "\n\t4.Yards";  cout << "\t\t\t\t\t25.Radians";
		cout << "\n\t5.Furlong";	 cout << "\t\t\t\t26.Joules";
		cout << "\n\t6.Inches"; cout << "\t\t\t\t27.kWh";
		cout << "\n\t7.Atm"; cout << "\t\t\t\t\t28.kJ";
		cout << "\n\t8.Bar";  cout << "\t\t\t\t\t29.Calories";
		cout << "\n\t9.mmHg"; cout << "\t\t\t\t\t30.Btu";
		cout << "\n\t10.kgf/cm^2";  cout << "\t\t\t\t31.Therm";
		cout << "\n\t11.lbf/in^2"; cout << "\t\t\t\t32.Square feet";
		cout << "\n\t12.Pascals"; cout << "\t\t\t\t33.Hectares";
		cout << "\n\t13.Celcius"; cout << "\t\t\t\t34.Square metres";
		cout << "\n\t14.Kelvin"; cout << "\t\t\t\t35.Acres";
		cout << "\n\t15.Fahrenheit"; cout << "\t\t\t\t36.Square miles";
		cout << "\n\t16.Kg"; cout << "\t\t\t\t\t37.Gallons";
		cout << "\n\t17.Ounces"; cout << "\t\t\t\t38.Pints";
		cout << "\n\t18.Pounds"; cout << "\t\t\t\t39.Litres";
		cout << "\n\t19.Stones"; cout << "\t\t\t\t40.Quarts";
		cout << "\n\t20.Km/h";
		cout << "\n\t21.Mph";
		cout << endl << endl;
		cout << "Enter the unit: ";
		int sele;
		cin >> sele;
		switch (sele)
		{
		case 1:
			kmToOthers();
			break;
		case 2:
			milesToOhers();
			break;
		case 3:
			feetToOhers();
			break;
		case 4:
			inchesToOhers();
			break;
		case 5:
			furlongsToOhers();
			break;
		case 6:
			yardsToOthers();
			break;
		case 7:
			atmToOhers();
			break;
		case 8:
			mmHgToOhers();
			break;
		case 9:
			kgfpcm2ToOhers();
			break;
		case 10:
			pascalsToOhers();
			break;
		case 11:
			lbfpin2ToOhers();
			break;
		case 12:
			barToOhers();
			break;
		case 13:
			celciusToOhers();
			break;
		case 14:
			kelvinToOhers();
			break;
		case 15:
			fahrenheitToOhers();
			break;
		case 16:
			kgToOthers();
			break;
		case 17:
			ouncesToOthers();
			break;
		case 18:
			poundsToOthers();
			break;
		case 19:
			stonesToOthers();
			break;
		case 20:
			kmphToOhers();
			break;
		case 21:
			mphToOhers();
			break;
		case 22:
			mpsToOhers();
			break;
		case 23:
			knotsToOhers();
			break;
		case 24:
			machToOhers();
			break;
		case 25:
			radiansToDegrees();
			break;
		case 26:
			joulesToOhers();
			break;
		case 27:
			kjToOhers();
			break;
		case 28:
			kwhToOhers();
			break;
		case 29:
			caloriesToOhers();
			break;
		case 30:
			btuToOhers();
			break;
		case 31:
			thermToOhers();
			break;
		case 32:
			squarefeetToOhers();
			break;
		case 33:
			hectaresToOhers();
			break;
		case 34:
			squaremetresToOhers();
			break;
		case 35:
			acresToOhers();
			break;
		case 36:
			squaremilesToOhers();
			break;
		case 37:
			gallonsToOthers();
			break;
		case 38:
			pintsToOthers();
			break;
		case 39:
			litresToOthers();
			break;
		case 40:
			quartsToOthers();
			break;
		default:
			cout << "Wrong Input" << endl; cout << "Wrong Input" << endl;
			break;
		}
	default:
		cout << "Wrong Input" << endl;
	}

	cout << "\n\n\t\t\t\tPress 'E' to Exit" << endl;
	char exit;
	cin >> exit;
	if (exit == 'E' || 'e')
	{
		system("cls");
		goto start;

	}

	system("pause");
}


	
	
