how it solve?
 CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

1. Junior Member
Join Date
Dec 2012
Posts
5

## 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

2. Elite Member Power Poster
Join Date
Nov 2003
Location
Florida
Posts
12,518

## Re: how it solve?

Dude, just posting assignments with no effort on your own isn't how this forum works.

3. Junior Member
Join Date
Dec 2012
Posts
5

## 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...

4. Member +
Join Date
Apr 2008
Posts
726

## Re: how it solve?

Just this time? Well.... no.

5. Junior Member
Join Date
Dec 2012
Posts
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[itex]
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;

6. Elite Member Power Poster
Join Date
Nov 2003
Location
Florida
Posts
12,518

## 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[itex]
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
•