hey guys
i just made a very simple if else program in which if i use cos or sin, or ne trig functin it comes false even tho its true! i'll paste the program below
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <math.h>
using namespace std;
void main ()
{
if (cos(.52)==cos(.52))
cout << " The Statement is true ";
else
cout << " The statement is false";
return ;
}
can some1 plz inform me of what 2 do ??
thnx
i just made a very simple if else program in which if i use cos or sin, or ne trig functin it comes false even tho its true! i'll paste the program below
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <math.h>
using namespace std;
void main ()
{
if (cos(.52)==cos(.52))
cout << " The Statement is true ";
else
cout << " The statement is false";
return ;
}
can some1 plz inform me of what 2 do ??
thnx