i this taylor series on my own, with friends helping, but I can't seem to make it work.. here the code... and I am not suppose 2 use cmath function..
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main()
{
bool finish = false;
double x;
char output;
char D;
char R;
double radian;
int counter = 1;
int c;
int factorial = 1; //factorial start from 1 to make sure 0! is covered
char Y;
while (!finish)
{
cout << "PLease Enter an angle value =>" ;
cin >> x;
cout << "Is the angle in Degree or Radian?" << endl;
cout << "Type D if it is a Degree" << endl;
cout << "Type R if it is a Radian" << endl;
cin >> output;
cout << "Do You want to continue?" << endl;
cout << "\tType Y to continue"<< endl;
cout << "\tType any other key to stop"<< endl;
cin >> Y;
cout << "Your response =>" << Y << endl;
if ( Y == 'y' || Y == 'Y')
{
cout << " continue " << endl;
}
else if ( Y != 'y' || Y != 'Y')
{
cout << " Bye Bye :) " << endl;
finish == true;