you are right Mr. but it is just for this time cuz i dont study in this program..i promise if you help me i will study next time and i will solve it by my self..please help me just this time...
so tell me where is wrong? said make failed ....just tell me that..
for this question:
input X and Y then write the program to compute Sin(X++) Cos(Y--);Sin(X+X),Cos(Y--)and write your conclusion for
X=46 & Y=90
#include<iostream>
#include<math>
using namespace std;
void main(){
int X,Y,Z,D,E,F;
cin>>X>>Y;
Z=sin(X+X);
D=cos(Y--);
E=sin(X++);
F=cos(Y--);
cout<<Z<<endl<<D<<endl<<E<<endl<<F<<endl;
You didn't input X and Y or even assign the values 46 and 90 to them.
main returns int, not void.
main has no closing brace.
sin and cos only accept and return floating point values.
Bookmarks