#include <iostream>
#include <math.h>
using namespace std;
int main() {
double a,b;
cout<<"Input a and b values: [a,b]"<<endl;
cin>>a>>b;
//computing the result
cout<<"Result:"<<endl;
cout<<"X\t|\tF(x)"<<endl;
cout<<"----------------------"<<endl;
if(a<=380 && b<=380)
{
//a values has to be greater than b value
double temp;
if(b>a)
{
cout<<"Error, a value has to be greater than b ."<<endl;
}
else
{
for(int i=a;i<=b;i++)
{
cout<<i<<">>"<<"\t|\t"<<sin(i)-cos(i)<<endl;
}
}
}else
cout<<"Error, input a correct angle value."<<endl;
return 0;
}