
December 11th, 2012, 02:19 PM
#1
how it solve?
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

December 11th, 2012, 02:20 PM
#2
Re: how it solve?
Dude, just posting assignments with no effort on your own isn't how this forum works.

December 11th, 2012, 02:26 PM
#3
Re: how it solve?
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...

December 11th, 2012, 03:04 PM
#4
Re: how it solve?
Just this time? Well.... no.

December 11th, 2012, 03:21 PM
#5
Re: how it solve?
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;

December 11th, 2012, 03:32 PM
#6
Re: how it solve?
Originally Posted by diaryrashid
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.
Posting Permissions
 You may not post new threads
 You may not post replies
 You may not post attachments
 You may not edit your posts

Forum Rules

Click Here to Expand Forum to Full Width
OnDemand Webinars (sponsored)
