CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
+ Reply to Thread
Results 1 to 6 of 6

Thread: how it solve?

  1. #1
    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. #2
    GCDEF is offline Elite Member Power Poster GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+)
    Join Date
    Nov 2003
    Posts
    11,562

    Re: how it solve?

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

  3. #3
    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. #4
    Join Date
    Apr 2008
    Posts
    726

    Re: how it solve?

    Just this time? Well.... no.

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

  6. #6
    GCDEF is offline Elite Member Power Poster GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+)
    Join Date
    Nov 2003
    Posts
    11,562

    Re: how it solve?

    Quote Originally Posted by diaryrashid View Post
    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.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts



HTML5 Development Center

Click Here to Expand Forum to Full Width